Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
scripts
mahara-scripts
Commits
8fb1bcfa
Commit
8fb1bcfa
authored
Jun 08, 2016
by
Son Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't replace \n in msg strings in po file
Change-Id: I06b8a0d7676cbfad3d6b9677304db72b79ebb173
parent
45a942c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
mahara-langpacks/update-po-from-pot.pl
mahara-langpacks/update-po-from-pot.pl
+0
-2
No files found.
mahara-langpacks/update-po-from-pot.pl
View file @
8fb1bcfa
...
...
@@ -62,7 +62,6 @@ foreach my $entry (@$trstrings) {
if
(
defined
$content
)
{
# Non-plural translation
$content
=~
s{\\n}{\n}g
;
next
if
(
$content
eq
''
||
$content
eq
'
""
'
);
}
if
(
defined
$content_n
)
{
...
...
@@ -70,7 +69,6 @@ foreach my $entry (@$trstrings) {
# untranslated, we can leave this entry out of the file.
my
$anything
=
0
;
foreach
my
$k
(
keys
%$content_n
)
{
$content_n
->
{
$k
}
=~
s{\\n}{\n}g
;
$anything
||=
(
$content_n
->
{
$k
}
ne
''
&&
$content_n
->
{
$k
}
ne
'
""
');
}
next
if
!
$anything
;
...
...
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