Re: Serbian translation
"Michiel Beijen" <[email protected]> Mon, 25 Oct 2010 20:23:25 +0200
| Newsgroups | gmane.comp.otrs.internationalization |
|---|---|
| Message-ID | <2B380F61DCBD44759FEE5253B2AAA64D@michieldesktop> |
Hi,
There was simply a ' too many in the file, making it no longer a valid Perl
file.
There were issues on line 3255 and 3298; attached are the corrected
versions.
It's really easy to check for Perl validity: go to the command line, and
type "perl -cw myfile.pl" .
If all is well you see something like this:
J:\>perl -cw sr_UTF_1.0\sr_Cyrl.pm
sr_UTF_1.0\sr_Cyrl.pm syntax OK
if not you'll get output like this:
J:\>perl -cw sr_UTF_1.0\sr_Cyrl.pm
Bareword found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3254,
near
"'Defines"
(Might be a runaway multi-line '' string starting on line 3253)
(Missing operator before Defines?)
Number found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3254,
near "n
umber 1"
(Do you need to predeclare number?)
String found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3255,
near "'
"
(Might be a runaway multi-line '' string starting on line 3254)
(Missing semicolon on previous line?)
Bareword found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3255,
near
"'Defines"
(Missing operator before Defines?)
Bareword found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3255,
near
"time field"
(Do you need to predeclare time?)
String found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3256,
near "'
"
(Might be a runaway multi-line '' string starting on line 3255)
(Missing semicolon on previous line?)
Bareword found where operator expected at sr_UTF_1.0\sr_Cyrl.pm line 3256,
near
"'Ticket"
(Missing operator before Ticket?)
syntax error at sr_UTF_1.0\sr_Cyrl.pm line 3254, near "'Defines the "
Bad name after View' at sr_UTF_1.0\sr_Cyrl.pm line 3256.
beware of the first error here, which points to line 3254 - fix that and
test again.
Testing a translation file on a live system in my opinion is a must for
actually creating a quality translation. I hope now you're able to run it.
Please feel free to submit any progress if you would make changes to the
file.
--
Mike
From: Милорад Јовановић
Sent: Monday, October 25, 2010 7:37 PM
To: [email protected]
Subject: [otrs-i18n] Serbian translation
Chronic time shortage these days slowed me a lot, but finally first version
of Serbian translation is finished.
We tried to test it with actual OTRS installation (3.0.0 beta3), but
unfortunately without success.
We unsuccessfully tried both UTF and ISO encoded translation files, with
UTF system just didn't work without any info and when we tried ISO encoded
files we got system error:
"Bad name after View' at ../..//Kernel/Language/sr_Cyrl.pm line 3256."
immediately after change language.I am not very good with Perl, but after
consultation with colleague (expert perl user) he pointed to possible
problem with syntax error in usage of double quotes, but with our
understanding of OTRS logic and time available we couldn't locate
error.Nevertheless, I attached both UTF and ISO encoded Serbian (Cyrillic
and Latin) files. Translation is based on German file ver. 1.239 with most
text strings translated except sysconfig part . I hope that you will be able
to check this files, correct eventual errors or suggest me what correct or
change, and of course bundle it with next beta version.Regarded Your
suggestion about OTRS version, we will stay on version 3, because we are not
ready to use it jet, and expect to prepare everything for start just about
the same time we expect that OTRS stable (v3.1) will be ready.
Milorad Jovanović
---------------------------------------------------------------------
OTRS mailing list: i18n - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/i18n
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/i18n
---------------------------------------------------------------------
OTRS mailing list: i18n - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/i18n
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/i18n
sr_UTF_1.0.zip
(application/x-zip-compressed, 121.7 KB) - not displayed