This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Do *.po (for same app) must absolutely have same keys ?

Tags: None
(comma "," separated)
lauranger
Registered Member
Posts
10
Karma
0
OS
Hi,

Related to
http://forum.kde.org/viewtopic.php?f=21&t=96203


I wonder if I am allowed to make l10n-kde4/fr/messages/kdeedu/kgeography.po bigger (in terms of entries) than the other l10n-kde4/*/messages/kdeedu.
What I am (and the current french translator for KGeography, as I understood) looking for is to cope with french demanding grammar. We (french speaking persons) put a (kind of) gender on country (and some sub-parts of) names and it often shows because we often use a definite article before it.

I don't know if such a case exists in another language, but what I have in mind would look as follows :

1) in the (french) translation file, for countries (and other kinds of sub-parts) we would add a tag-like on the translated side :

Code: Select all
msgctxt "asia.kgm"
msgid "Afghanistan"
msgstr "L'Afghanistan"

would become

Code: Select all
msgctxt "asia.kgm"
msgid "Afghanistan"
msgstr "Afghanistan<[de l']>"


and

Code: Select all
msgctxt "@title:group"
msgid "The capital of %1 is..."
msgstr "La capitale de %1 est..."

would give

Code: Select all
#fallback pattern
msgctxt "@title:group"
msgid "The capital of %1 is..."
msgstr "La capitale de l'%1 est..."

msgctxt "@title:group"
msgid "The capital of %<[de l']>1 is..."
msgstr "La capitale de l'%1 est..."

msgctxt "@title:group"
msgid "The capital of %<[du]>1 is..."
msgstr "La capitale du'%1 est..."


and

Code: Select all
msgid "%1 by Capital"
msgstr "%1 par capitale"

would give

Code: Select all
msgid "%<[du]>1 by Capital"
msgstr "Le %1 par capitale"

msgid "%<[d']>1 by Capital"
msgstr "%1 par capitale"


and so on ...
As the developper I would just have to
-catch gender-like introductions ( "<[things]>" in msgstr)
-try first by placing gender-like placeholders inside %1 (%2, %3 ...) of msgid pattern and if the catalog search fails try the origina/fallback pattern.

Will the kind of scheme trigger janitor scripts into yelling or are we free to try smth like this ?

Thanks in advance.

Laurent G.
lueck
Mentor
Posts
225
Karma
2
lauranger
Registered Member
Posts
10
Karma
0
OS
\o/ that sounds interesting. Thank you.
lauranger
Registered Member
Posts
10
Karma
0
OS
I tried to use this, but as thought the kgeography.js is loaded (at least as strace -e open shows) it always get the fallback and I get no console output from dbgputs, either on a set side or on the get side. And I compile kgeography in debug.
Any more hint ?
Thanks in advance.
Laurent G

[EDIT]
Good news : I contacted Chusslove Ilic and was able to correct my javascript.
I now have here a version that handle those problem.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]