Edgewall Software
Modify

Opened 17 years ago

Last modified 13 years ago

#5486 new task

Translation of Trac to Hungarian/Magyar [hu_HU]

Reported by: asmodai@… Owned by: nzoltan
Priority: normal Milestone: translations
Component: i18n Version:
Severity: normal Keywords: l10n hungarian
Cc: pongracz.istvan@…, nzoltan@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This ticket should be used to coordinate the translation to Hungarian/Magyar. See also TracTermsHu.

Attachments (8)

messages.po (87.9 KB ) - added by István PONGRÁCZ <pongracz.istvan@…> 15 years ago.
Hungarian translation, first draft, ~80% complete
messages.2.po (134.7 KB ) - added by peter.soos at vtav.hu 14 years ago.
repaired, from actual svn repo
messages.3.po (134.9 KB ) - added by peter.soos at vtav.hu 14 years ago.
Latest
messages.4.po (155.9 KB ) - added by nzoltan@… 14 years ago.
hungarian translation based on trunk 9610
messages.5.po (156.4 KB ) - added by nzoltan@… 14 years ago.
fixed translation
messages.6.po (157.7 KB ) - added by nzoltan@… 14 years ago.
small corrections, final version
messages.7.po (167.8 KB ) - added by nzoltan@… 14 years ago.
probably the first 100% version
trac_ticket_comment_label.png (12.3 KB ) - added by nzoltan@… 14 years ago.
is this label doesn't exists in messages.pot file ?

Download all attachments as: .zip

Change History (41)

comment:1 by Jeroen Ruigrok van der Werven, 17 years ago

Milestone: not applicable0.12
Owner: changed from Jonas Borgström to Jeroen Ruigrok van der Werven

comment:2 by Jeroen Ruigrok van der Werven, 16 years ago

Component: generali18n

comment:3 by Jeroen Ruigrok van der Werven, 16 years ago

Status: newassigned

comment:4 by Christian Boos, 16 years ago

Milestone: 0.130.12

comment:5 by John, 16 years ago

Sziasztok, Hi,

Hol található leírás, hogy hogyan kell a Trac-ot magyar nyelvűvé tenni? Van ez a .po fájl, de hova kellene másolni?

Where can i find a tutorial, description about to force the Trac to use another language, rather than English? I found some details about the po-mo files, but these did not help. I really appreciate any answers. Üdv, By(t)e: John Homonnai

in reply to:  5 comment:6 by Jeroen Ruigrok van der Werven, 16 years ago

Replying to John:

Where can i find a tutorial, description about to force the Trac to use another language

Please see http://trac.edgewall.org/wiki/TracL10N

The Hungarian translation needs a lot of work though.

comment:7 by pongracz.istvan@…, 15 years ago

Owner: changed from Jeroen Ruigrok van der Werven to pongraczi
Status: assignednew

Hi,

I am started to working on it. I will Keep you informed. Contact me directly, if you need more information: http://www.startit.hu http://www.osbusiness.hu

Sponsor: http://www.noventa.hu

by István PONGRÁCZ <pongracz.istvan@…>, 15 years ago

Attachment: messages.po added

Hungarian translation, first draft, ~80% complete

comment:8 by Christian Boos, 15 years ago

Cc: pongracz.istvan@… added
Owner: changed from pongraczi to Jeroen Ruigrok van der Werven

comment:9 by Jeroen Ruigrok van der Werven, 14 years ago

Owner: Jeroen Ruigrok van der Werven removed

comment:10 by Christian Boos, 14 years ago

Milestone: 0.12translations

Sorry, that messages.po file went unnoticed.

This is one of the reasons we're thinking about improving the translation workflow. Please join the Trac-dev MailingList if you have not already done so (see in particular Trac i18 and Transifex).

comment:11 by Christian Boos, 14 years ago

messages.po committed as r9021 and catalog updated from the latest extraction in r9022.

in reply to:  11 comment:12 by peter.soos at vtav.hu, 14 years ago

Replying to cboos:

messages.po committed as r9021 and catalog updated from the latest extraction in r9022.

The attached, and also the file in actual repo is bugy: had to comment out line like: msgid_plural "* where the next line was like msgstr[0] "*. If the next line is msgstr[0] "", there is no problem at all.

I don't speak python :)

by peter.soos at vtav.hu, 14 years ago

Attachment: messages.2.po added

repaired, from actual svn repo

by peter.soos at vtav.hu, 14 years ago

Attachment: messages.3.po added

Latest

comment:13 by peter.soos at vtav.hu, 14 years ago

Finaly done :)

Needed some more modification of messages.po (attached - messages.3.po), but the translation is terrible, Needs lot of work at least. I'll try to arrange some…

Steps:

  • python setup.py compile_catalog —use-fuzzy -l hu
  • python setup.py install

Works like magic.

comment:14 by Christian Boos, 14 years ago

Replying to peter.soos at vtav.hu:

Replying to cboos:

messages.po committed as r9021 and catalog updated from the latest extraction in r9022.

The attached, and also the file in actual repo is bugy: had to comment out line like: msgid_plural "* where the next line was like msgstr[0] "*. If the next line is msgstr[0] "", there is no problem at all.

Sorry, which line are you talking about? I don't see msgstr[0] "* there.

Also, the current coverage is 46%, but your messages.2.po makes it go down to 37%, whereas a simple catalog_update (using Babel 0.9.5) makes it decrease to only 43%?

(I just rechecked with messages.3.po, same thing, only 37%)

by nzoltan@…, 14 years ago

Attachment: messages.4.po added

hungarian translation based on trunk 9610

comment:15 by nzoltan@…, 14 years ago

Hi all,

Please find my attacment (messages.4.po), this is based on the latest trunk po. All fuzzy and plurals are fixed, and the interface messages almost all complete. System error messages and cli messages are still english only (this is by design, because I think is easier to find a solution based on the original english error message).

Istvan and/or Peter please review.

Zoltan.

comment:16 by Christian Boos, 14 years ago

A few problems detected by make check-hu (i.e. msgfmt --check messages.4.po):

$ make check-hu
check-hu: trac/locale/hu/LC_MESSAGES/messages.po:7: nplurals = 1...
trac/locale/hu/LC_MESSAGES/messages.po:764: ...but some messages have 2 plural forms
trac/locale/hu/LC_MESSAGES/messages.po:1169: a format specification for argument 'scheme' doesn't exist in 'msgstr'
trac/locale/hu/LC_MESSAGES/messages.po:1738: `msgid' and `msgstr' entries do not both end with '\n'
trac/locale/hu/LC_MESSAGES/messages.po:1750: `msgid' and `msgstr' entries do not both end with '\n'
trac/locale/hu/LC_MESSAGES/messages.po:2698: 'msgstr' is not a valid Python format string, unlike 'msgid'. Reason: In the directive number 1, the character 'A' is not a valid conversion specifier.
trac/locale/hu/LC_MESSAGES/messages.po:4842: 'msgstr' is not a valid Python format string, unlike 'msgid'. Reason: In the directive number 1, the character 'v' is not a valid conversion specifier.
msgfmt: found 6 fatal errors

by nzoltan@…, 14 years ago

Attachment: messages.5.po added

fixed translation

comment:17 by nzoltan@…, 14 years ago

Sorry I forgot to run this test before upload. Please find the fixed translation in the attachment.

comment:18 by Christian Boos, 14 years ago

Thanks! I added messages.5.po in r9616. I also changed the plural form to be:

Plural-Forms: nplurals=2; plural=(n!=1)\n"

(according to e.g. https://bugs.launchpad.net/rosetta/+bug/188497).

by nzoltan@…, 14 years ago

Attachment: messages.6.po added

small corrections, final version

comment:19 by nzoltan@…, 14 years ago

In the meanwhile my colleague after all revised this file and he did some small corrections. This is the last version. The plural-forms header also updated as well.

comment:20 by Christian Boos, 14 years ago

messages.6.po added in r9617.

I hope this is not the last version, as it would be too bad to stop at 90% ;-)

by nzoltan@…, 14 years ago

Attachment: messages.7.po added

probably the first 100% version

comment:21 by nzoltan@…, 14 years ago

So be it! I hope that messages.7.po is 100%, and also contains small fixes.

I know that offtopic, but can you help me on this #9292 problem? I can't find any solution. :(

comment:22 by nzoltan@…, 14 years ago

Cc: nzoltan@… added

comment:23 by Christian Boos, 14 years ago

Great work nzoltan, if you'd like to be able to commit further updates by yourself, just tell me.

messages.7.po committed in [9624].

by nzoltan@…, 14 years ago

is this label doesn't exists in messages.pot file ?

comment:24 by nzoltan@…, 14 years ago

Thank you! yes, I would like to maintain this translation. We use is the Trac every day collaborate with our customers. Therefore an up-to-date Hungarian translation is important for us.

One label of the ticket form (at changes section) doesn't exists in the messages.pot file (or just I not found anywhere). Please find the attached picture.

in reply to:  24 comment:25 by Christian Boos, 14 years ago

Replying to nzoltan@…:

Thank you! yes, I would like to maintain this translation. We use is the Trac every day collaborate with our customers. Therefore an up-to-date Hungarian translation is important for us.

Perfect, that's also how the translations are the best taken care of, we found out.

One label of the ticket form (at changes section) doesn't exists in the messages.pot file (or just I not found anywhere). Please find the attached picture.

No, it's intentionally not translated as a hint that you can directly use it in wiki texts, as comment: links.

comment:26 by Remy Blank, 14 years ago

Owner: set to nzoltan

comment:27 by anonymous, 13 years ago

Hello!

Egyszerűen képtelen vagyok lefordítani a trac-ot magyarra. A leírások alapján próbáltam, de mindig ezt kapom: error: invalid command 'update_catalog'

Tudnátok segíteni?

comment:28 by nzoltan, 13 years ago

Magát a Trac-ot nem kell lefordítani magyarra, az alapcsomag tartalmazza a magyar nyelvet is. Ha a böngésző lokalizációja magyar, akkor automatikusan magyarul jelenik meg a Trac. Ha nem, akkor felül a "Preferences" menüben az adott sessionhöz át lehet állítani magyarra. Arra egyelőre nincs mód, hogy a Trac mindig magyarul jelenjen meg, függetlenül a böngésző lokalizációjától.

Ha az üzenetfájlt (messages.po) akarod újrafordítani mert módosítottad a fordítást, akkor az alábbi wiki oldal lesz a segítségedre: TracL10N azaz a parancssor:

python setup.py update_catalog -l hu

közben az aktuális könyvtárad legyen a Trac disztribúció src könyvtára. Ne felejtsd el a hiba ellenőrzést sem:

msgfmt --statistics --check utvonal/messages.po

további részleteket lást az TracL10N lapon.

Amennyiben hibát találtál az üzenet fájlban vagy korrigáltad azt, a módosításokat vagy az új üzenetfájlt csatolhatod például ide, így ezek a módosítások bekerülhetnek majd az alapkiadásba.

comment:29 by anonymous, 13 years ago

Köszönöm a gyors válaszod!

Biztos nálam nem stimmel valami, de hiába próbáltam svn-ből, easy_istall-al 0.12-őt 0.13at is, a legtöbb, amit elértem, hogy 0.13-ban az admin fülön bejött a nyelv választás, de csak a browser's default language-et lehetett választani, mert nem volt más a listában. A preferences-ben sosem jelent meg semmi. A browser területi beállítását ellenőriztem, magyar.

Azért kezdtem el próbálkozni az update_catalog-al, hogy hátha az kell a megváltáshoz, de ezekszerint nem. Mindenesetre mégiscsak gyanús, hogy nálam ez a parancs a setup.py szerint nem létezik. Elképzelhető, hogy valami csomag nincs nálam telepítve, vagy van valami ötleted, hogy miért lehet ez?

/usr/src/trac/Trac-0.12.1# python setup.py update_catalog -l hu
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'update_catalog'

comment:30 by nzoltan, 13 years ago

Igen, én is belefutottam ebbe a problémába még a 0.12 kiadása előtt, gondolom most Te jelezted ugyanezt a problémát a #9374 jegyben. Ez a hiba elvileg javítva lett, de ha mégsem, akkor sem szabad a hibának jelentkeznie ha a Trac telepítve van, csak akkor ha a Trac nincs telepítve. A preferences menüben 5 fülnek kell lennie, a negyedik a nyelv választás, lásd itt:

http://trac.edgewall.org/demo-0.12/prefs

Magyar böngészővel magyarul kell megjelennie, illetve ebben a demóban is átállíthatod a nyelvet magyarra.

Ha a preferences menü nálad nem működik, akkor valami telepítési probléma lehet. A magyar nyelv része az alapcsomagnak, vagyis minden varázslat nélkül magyarul kellene megjelennie a felületnek telepítés után magyar böngészővel (ezt a fenti demó linken is ellenőrizheted).

Milyen Linux disztribúción próbálkozol? A legtöbb esetében van előregyártott kész Trac csomag, esetleg meg lehet próbálni azt is, vagy ha mást nem, megnézni annak a csomagnak a függőségeit, abból kiderülhet talán mi hiányzik vagy milyen verzió kellene az egyes függőségekből.

comment:31 by anonymous, 13 years ago

Igen ez az oldal magyarul jön be nekem és a preferencesben is ott a nyelv fül, szóval a kliens oldali hiba kizárható.

debian-om van és még csak testing-ben sincs 0.12-es csomag és muszáj magyarítanom ezért próbálkozom forrásból felrakni.

in reply to:  31 comment:32 by nzoltan, 13 years ago

Sajnos a Debianhoz nem értek, de van itt egy útmutató debianhoz és egy további leírás a telepítés utáni konfiguráláshoz. Esetleg az Ubuntu csomagokkal is lehet próbát tenni.

Viszont a telepítési probléma feltárása ebben a jegyben offtopic, próbálj kérdezni a felhasználói levelező listán még. Sok sikert!

comment:33 by Viktor Ferenczi <fviktor@…>, 13 years ago

Az OS csomagok általában régiek, tehát csomagból csak a bináris részeket (Python maga, Apache, mod-wsgi, stb.) érdemes telepíteni, a Python csomagokat pedig forrásból easy-install-lal telepíteni. A Trac telepítési útmutatójában írják, de nagyon könnyű elrontani:

Először a Babel-t kell telepíteni:

easy_install Babel

Csak utána szabad a Trac-et:

easy_install --always-unzip Trac

Ha mégis sikerül fordítva telepíteni, akkor sincs minden veszve. Az easy-install (tudtommal) nem tud csomagot eltávolítani, de kézzel ki lehet törölni a Trac-et. A használt Python verzióhoz tartozó site-packages vagy dist-packages (keress rájuk) könyvtár alatt találsz egy Trac-0.12.1-py2.6.egg könyvtárat. Ezt a könyvtárad egyszerűen töröld, valamint vedd ki a Trac sorát a szintén ott található easy-install.pth fájlból.

Ezután győződj meg róla, hogy a Babel már telepítve lett, ha nem akkor most tedd fel. Utána telepítsd újra a Trac-et a fenti paranccsal. Az újratelepítés ezúttal felteszi a nyelvi fájlokat is, ami megoldja a problémát.

Ha Apache mögött futtatod a Trac-et, akkor ne felejtsd el újraindítani a Web szervert.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain nzoltan.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from nzoltan to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.