Hi Cedric,

Am Mittwoch, 8. Juli 2015 12:52:10 UTC+2 schrieb Cédric Krier:
>
> > the RPM build script removes the newly translated languages in 
> > Tryton-Client 3.6.1: 
> > 
> > [   80s] + /usr/lib/rpm/find-lang.sh 
> > /home/abuild/rpmbuild/BUILDROOT/tryton-3.6.1-0.i386 tryton --without-C 
> > [   80s] removing translation 
> > /usr/share/locale/bg_BG/LC_MESSAGES/tryton.mo: 377 translated messages. 
> > [   81s] removing translation 
> > /usr/share/locale/lt_LT/LC_MESSAGES/tryton.mo: 386 translated messages. 
> > [   81s] removing translation 
> > /usr/share/locale/ca_ES/LC_MESSAGES/tryton.mo: 402 translated messages. 
> > [   81s] removing translation 
> > /usr/share/locale/nl_NL/LC_MESSAGES/tryton.mo: 338 translated messages. 
> > [   81s] removing translation 
> > /usr/share/locale/ja_JP/LC_MESSAGES/tryton.mo: <stdin>:81: 'msgid' and 
> > 'msgstr' entries do not both end with '\n' 
> > [   81s] <stdin>:383: 'msgid' and 'msgstr' entries do not both end with 
> '\n' 
> > [   81s] <stdin>:709: 'msgid' and 'msgstr' entries do not both end with 
> '\n' 
> > [   81s] <stdin>:877: 'msgid' and 'msgstr' entries do not both end with 
> '\n' 
> > [   81s] msgfmt: found 4 fatal errors 
> > [   81s] 337 translated messages. 
> > 
> > Anyone seen such an error before? 
>
> Which RPM build script? 
>

the RPM-macro %find_lang, calling the above script 
/usr/lib/rpm/find-lang.sh 
 

> What is the tool used to do "I don't know what it is"? 
> FYI, the tryton package comes with all catalogs compiled so you don't 
> have to compile them again. 
>
> > How can I check the content of the .mo file? 
>
> Here is the command to compile the catalogs: 
>
>     python setup.py compile_catalog 
>

I get an error message when I run this. Anythin missing in the setup?
 
T520:/home/abuild/rpmbuild/BUILD/tryton-3.6.1 # python setup.py 
compile_catalog
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 'compile_catalog'
T520:/home/abuild/rpmbuild/BUILD/tryton-3.6.1 # python setup.py 
--help-commands
Standard commands:
  build             build everything needed to install
  build_py          "build" pure Python modules (copy to build directory)
  build_ext         build C/C++ extensions (compile/link to build directory)
  build_clib        build C/C++ libraries used by Python extensions
  build_scripts     "build" scripts (copy and fixup #! line)
  clean             clean up temporary files from 'build' command
  install           install everything from build directory
  install_lib       install all Python modules (extensions and pure Python)
  install_headers   install C/C++ header files
  install_scripts   install scripts (Python or otherwise)
  install_data      install data files
  sdist             create a source distribution (tarball, zip file, etc.)
  register          register the distribution with the Python package index
  bdist             create a built (binary) distribution
  bdist_dumb        create a "dumb" built distribution
  bdist_rpm         create an RPM distribution
  bdist_wininst     create an executable installer for MS Windows
  upload            upload binary package to PyPI
  check             perform some checks on the package

Extra commands:
  rotate            delete older distributions, keeping N newest files
  develop           install package in 'development mode'
  setopt            set an option in setup.cfg or another config file
  saveopts          save supplied options to setup.cfg or other config file
  egg_info          create a distribution's .egg-info directory
  upload_docs       Upload documentation to PyPI
  alias             define a shortcut to invoke one or more commands
  easy_install      Find/get/install Python packages
  bdist_egg         create an "egg" distribution
  install_egg_info  Install an .egg-info directory for the package
  test              run unit tests after in-place build

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

Reply via email to