Re: Finding a string in translations
- From: Mohammad Foroughi <mf 417 ir>
- To: Ihar Hrachyshka <ihar hrachyshka gmail com>, gnome-i18n gnome org
- Subject: Re: Finding a string in translations
- Date: Thu, 22 May 2008 11:41:44 +0430
روز پنجشنبه، 2008-05-22 ساعت 10:02 +0300، Ihar Hrachyshka نوشت:
> On Thu, 2008-05-22 at 11:27 +0430, Mohammad Foroughi wrote:
< <روز پنجشنبه، 2008-05-22 ساعت 09:33 +0300، Tomas Kuliavas نوشت:
> > > >>sudo msgfmt ./gnome-app-install.po
> > > >>-o /usr/share/locale-langpack/fa/LC_MESSAGES/gnome-app-install.mo
> > > >
> > > > And Now my menu is Persian!
> > > >
> > > > Thank you very much.
> > >
> > > Always add '-c' and '--check-accelerators=_' arguments to msgfmt when you
> > > compile Gnome translation files. These tests improve your translation work
> > > by checking translation for errors.
> > >
> >
> > Tanx for your concern,
> >
> > I used this command:
> >
> > >sudo msgfmt -c -v --check-accelerators=_ ./gnome-app-install.po
> > >-o /usr/share/locale-langpack/fa/LC_MESSAGES/gnome-app-install.mo
> >
> > And this is the output:
> >
> > >38 translated messages, 66 untranslated messages.
> >
> > With no errors.
> >
> > But when I start gnome-app-installer (from a console) I get this error
> > message:
> >
> > > gnome-app-install
> >
> > Traceback (most recent call last):
> > File "/usr/bin/gnome-app-install", line 30, in <module>
> > main()
> > File "/usr/lib/python2.5/site-packages/AppInstall/activation.py", line
> > 360, in main
> > parser = OptionParser()
> > File "/usr/lib/python2.5/optparse.py", line 1199, in __init__
> > self.set_usage(usage)
> > File "/usr/lib/python2.5/optparse.py", line 1274, in set_usage
> > self.usage = _("%prog [options]")
> > File "/usr/lib/python2.5/gettext.py", line 581, in gettext
> > return dgettext(_current_domain, message)
> > File "/usr/lib/python2.5/gettext.py", line 545, in dgettext
> > codeset=_localecodesets.get(domain))
> > File "/usr/lib/python2.5/gettext.py", line 493, in translation
> > t = _translations.setdefault(key, class_(open(mofile, 'rb')))
> > File "/usr/lib/python2.5/gettext.py", line 180, in __init__
> > self._parse(fp)
> > File "/usr/lib/python2.5/gettext.py", line 314, in _parse
> > plural = v[1].split('plural=')[1]
> > IndexError: list index out of range
> > Error in sys.excepthook:
> > Traceback (most recent call last):
> > File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line
> > 78, in apport_excepthook
> > report_file = open(pr_filename, 'wt')
> > IOError: [Errno 13] Permission denied:
> > '/var/crash/_usr_bin_gnome-app-install.1000.crash'
> >
> > Original exception was:
> > Traceback (most recent call last):
> > File "/usr/bin/gnome-app-install", line 30, in <module>
> > main()
> > File "/usr/lib/python2.5/site-packages/AppInstall/activation.py", line
> > 360, in main
> > parser = OptionParser()
> > File "/usr/lib/python2.5/optparse.py", line 1199, in __init__
> > self.set_usage(usage)
> > File "/usr/lib/python2.5/optparse.py", line 1274, in set_usage
> > self.usage = _("%prog [options]")
> > File "/usr/lib/python2.5/gettext.py", line 581, in gettext
> > return dgettext(_current_domain, message)
> > File "/usr/lib/python2.5/gettext.py", line 545, in dgettext
> > codeset=_localecodesets.get(domain))
> > File "/usr/lib/python2.5/gettext.py", line 493, in translation
> > t = _translations.setdefault(key, class_(open(mofile, 'rb')))
> > File "/usr/lib/python2.5/gettext.py", line 180, in __init__
> > self._parse(fp)
> > File "/usr/lib/python2.5/gettext.py", line 314, in _parse
> > plural = v[1].split('plural=')[1]
> > IndexError: list index out of range
>
> Show us a gettext header for your translation and a generic 'plural'
> specification for your language. I think they are different, isn't it?
>
> >
> > Have any Idea?
> >
> > _______________________________________________
> > gnome-i18n mailing list
> > gnome-i18n gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-i18n
>
Tanx alot
I fixed it: there was a line like this:
>"Plural-Forms: "
In my header, I just deleted it and now everything is OK.
Tanx again.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]