[Mageia-i18n] [Bug 3907] Transifex exports some strings in English instead of translated language

Michael Scherer bugzilla-daemon at mageia.org
Fri Feb 24 22:46:10 CET 2012


https://bugs.mageia.org/show_bug.cgi?id=3907

Michael Scherer <misc at zarb.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |misc at zarb.org

--- Comment #7 from Michael Scherer <misc at zarb.org> 2012-02-24 22:46:10 CET ---
Ok, so after taking a look, and using the following script :

#!/usr/bin/python
import os, sys
path = '/usr/share/transifex'
if path not in sys.path:
    sys.path.append(path)
path = '/usr/share'
if path not in sys.path:
    sys.path.append(path)
path = '/usr/local/lib/'
if path not in sys.path:
    sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'transifex.settings'
from django.db.models import get_model

Template = get_model('resources', 'Template')
Resource = get_model('resources', 'Resource')

r = Resource.objects.get(name='1_drakx-net.pot')
t = Template.objects.get(resource=r)
print t.content

I found that the database is incorrect. Ie, it should show this :


#: ../lib/network/vpn/vpnc.pm:61
#, c-format
msgid "NAT Mode"
msgstr "7bec4f55f1b699bf1dc52352c1e3d5ff_tr"

and for multi line, it does show this : 

#: ../lib/network/shorewall.pm:164
#, c-format
msgid ""
"Your firewall configuration has been manually edited and contains\n"
"rules that may conflict with the configuration that has just been set up.\n"
"What do you want to do?"
msgstr ""
"Your firewall configuration has been manually edited and contains\n"
"rules that may conflict with the configuration that has just been set up.\n"
"What do you want to do?"

So there is indeed a issue in the db.

-- 
Configure bugmail: https://bugs.mageia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Mageia-i18n mailing list