Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scripts
mahara-scripts
Commits
62b76f89
Commit
62b76f89
authored
Sep 30, 2015
by
Son Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 15.10_STABLE translation branch
Change-Id: I7d3a726795e53b5183a1665faec91270a0a8f638
parent
7d07343d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mahara-langpacks/langpacks.pl
mahara-langpacks/langpacks.pl
+3
-3
mahara-langpacks/update-pot.sh
mahara-langpacks/update-pot.sh
+1
-1
No files found.
mahara-langpacks/langpacks.pl
View file @
62b76f89
...
...
@@ -111,7 +111,7 @@ system "git fetch --quiet origin";
# For launchpad, all languages are in a single branch, so update the lot
system
"
bzr launchpad-login dev-mahara
";
!
-
d
$BZRDIR
&&
system
"
bzr init-repo
$BZRDIR
";
my
@branches
=
qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master)
;
my
@branches
=
qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE
15.10_STABLE
master)
;
foreach
my
$branch
(
@branches
)
{
if
(
!
-
d
"
$BZRDIR
/
$branch
"
)
{
...
...
@@ -145,14 +145,14 @@ foreach my $lang (@langkeys) {
if
(
$remote
=~
m/^lp:mahara-lang/
)
{
$repotype
=
'
launchpad
';
@branches
=
qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master)
;
@branches
=
qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE
15.10_STABLE
master)
;
}
elsif
(
$remote
=~
m{^https://git\.mahara\.org|^https://gitlab\.com}
)
{
$repotype
=
'
git
';
!
-
d
"
$gitlangdir
"
&&
system
"
git clone --quiet
$remote
$gitlangdir
";
chdir
$gitlangdir
;
system
"
git fetch --quiet
";
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.7_STABLE\|1.8_STABLE\|1.9_STABLE\|1.10_STABLE|15.04_STABLE\)$"
';
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.7_STABLE\|1.8_STABLE\|1.9_STABLE\|1.10_STABLE|15.04_STABLE
|15.10_STABLE
\)$"
';
my
$remotebranches
=
`
$remotebranchcmd
`;
$remotebranches
=~
s/\s+/ /
;
@branches
=
();
...
...
mahara-langpacks/update-pot.sh
View file @
62b76f89
...
...
@@ -49,7 +49,7 @@ BZR=${WORK}/mahara-lang-bzr
cd
${
GITDIR
}
git fetch
--quiet
origin
branches
=
"1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master"
branches
=
"1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE
15.10_STABLE
master"
for
branch
in
${
branches
}
;
do
branchexists
=
`
git branch |
grep
"
${
branch
}
$"
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment