Chameleon

Issue 317: Translating Resources ERROR (on the latest trunk 2171)

Reported by Bruno Finocchiaro, Jan 23, 2013

I always get the following error during package build:

========= Translating Resources ========
Error: 'msgmerge -U po/ar.po po/chameleon.pot --lang=ar --previous 
--backup=none' exited with value 1.


ps I have not encountered this error with previous releases! 

thanks for support!

Comment 1 by chromafile, Jan 23, 2013

You have to compile & install gettext.

Comment 2 by Bruno Finocchiaro, Jan 23, 2013

Hi Chromafile, I've already tried what you say...
I repeat, I've encountered this issue only with the latest release 
(2171). 
I just tried to compile again the release 2170 and remains without 
errors
thanks man

Comment 3 by chromafile, Jan 23, 2013

I compiled 2171 without any errors.
I use Apple Clang 4.1 as the default compiler, not llvm-gcc, btw.

Comment 4 by Bruno Finocchiaro, Jan 23, 2013

hey Chromafile, how can install Clang under OSX ML?
It's already included in Xcode?

And what are the commands that you use in the terminal.app?
thanks in advance man! ;)

Comment 5 by chromafile, Jan 23, 2013

I assume you installed Xcode 4.5.2 via MAS and installed Command 
Line Tools from Preferences.

You have 2 options to make Clang as the default compiler. Use 
.bash_profile or symbolic link. I personally use a symbolic link 
option.

A1. In Terminal, "sudo nano .bash_profile"
A2. Copy & paste below, save it (ctrl + o, then ctrl + x) and 
relaunch Terminal. 

export CC=clang
export CXX=clang++

B1. In Terminal, "cd /usr/bin && sudo rm gcc g++"
B2. "sudo ln -s clang gcc && sudo ln -s clang g++"

My terminal command to compile Chameleon is,
"sudo make pkg"

Comment 6 by Bruno Finocchiaro, Jan 24, 2013

Hi Chroma!!! ;)
the translating error remain also with your tips :/
Listen, check this, is the shell output of 2170 and 2171 
releases(only the final part)...
---------------------------------------------------------------------
------------
r2170:
========= Translating Resources ========
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/ar.lproj/Welcome.html (0 of 11 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/ar.lproj/Description.html (0 of 18 strings; only 0% translated; 
need 80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/ar.lproj/Conclusion.html (0 of 9 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/ar.lproj/Localizable.strings (13 of 161 strings; only 8.07% 
translated; need 75%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/el.lproj/Welcome.html (0 of 11 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/el.lproj/Description.html (0 of 18 strings; only 0% translated; 
need 80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/el.lproj/Conclusion.html (0 of 9 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/el.lproj/Localizable.strings (15 of 161 strings; only 9.31% 
translated; need 75%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/fa.lproj/Localizable.strings (36 of 161 strings; only 22.36% 
translated; need 75%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/he.lproj/Welcome.html (0 of 11 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/he.lproj/Description.html (0 of 18 strings; only 0% translated; 
need 80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/he.lproj/Conclusion.html (0 of 9 strings; only 0% translated; need 
80%).
Discard 
/Users/onehalfkiller/SVN/130122/trunk/sym/package/Chameleon/Resources
/he.lproj/Localizable.strings (22 of 161 strings; only 13.66% 
translated; need 75%).

 --------------------------
 Building process complete!
 --------------------------

 Build info.
 ===========
  Package name: Chameleon-2.2svn-r2170.pkg
  MD5:          19dde79ef6e32ca895a8b85f4268fb2d
  Version:      2.2svn
  Stage:        2.2svn
  Date/Time:    2013-01-24 10:22:35
  Built by:     root
  Copyright 2008-2013
---------------------------------------------------------------------
------------
END OF 2170


And the following is the output of 2171 release:


========= Translating Resources ========
Error: 'msgmerge -U po/ar.po po/chameleon.pot --lang=ar --previous 
--backup=none' exited with value 1.

 --------------------------
 Building process complete!
 --------------------------

 Build info.
 ===========
  Package name: Chameleon-2.2svn-r2171.pkg
  MD5:          6749692ded02b5859d4bc2775a24b722
  Version:      2.2svn
  Stage:        2.2svn
  Date/Time:    2013-01-24 10:36:46
  Built by:     root
  Copyright 2008-2013
---------------------------------------------------------------------
------------
END OF 2171


i think this issue is really strange! the error is only for r2171 
-.-
thanks for support! ;)

Comment 7 by Bruno Finocchiaro, Jan 24, 2013

ok, I've found the bug!

first of all, in this final release of chameleon (2171) the 
following files are changed:

/trunk/package/buildpkg.sh
/trunk/package/po/chameleon.pot
/trunk/package/Resources/templates/Localizable.strings


I've only replaced chameleon.pot(2171) with chameleon.pot(2170) and 
the issue disappear! ;)

So, please project owners to check the latest chameleon.pot and fix 
it! thanks guys

Comment 8 by chromafile, Jan 24, 2013

Here's my build log...

========= Translating Resources ========
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/ar.lproj/
Welcome.html (0 of 11 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/ar.lproj/
Description.html (0 of 18 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/ar.lproj/
Conclusion.html (0 of 9 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/ar.lproj/
Localizable.strings (13 of 167 strings; only 7.78% translated; need 
75%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/el.lproj/
Welcome.html (0 of 11 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/el.lproj/
Description.html (0 of 18 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/el.lproj/
Conclusion.html (0 of 9 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/el.lproj/
Localizable.strings (15 of 167 strings; only 8.98% translated; need 
75%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/fa.lproj/
Localizable.strings (36 of 167 strings; only 21.55% translated; need 
75%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/he.lproj/
Welcome.html (0 of 11 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/he.lproj/
Description.html (0 of 18 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/he.lproj/
Conclusion.html (0 of 9 strings; only 0% translated; need 80%).
Discard 
/Volumes/Data/src/chameleon/sym/package/Chameleon/Resources/he.lproj/
Localizable.strings (22 of 167 strings; only 13.17% translated; need 
75%).

 --------------------------
 Building process complete!
 --------------------------

 Build info.
 ===========
  Package name: Chameleon-2.2svn-r2171.pkg
  MD5:          3474bb3aeac5fcf24894cf4e00ee8ac6
  Version:      2.2svn
  Stage:        2.2svn
  Date/Time:    2013-01-24 08:20:59
  Built by:     root
  Copyright 2008-2013 

You should uninstall & recompile gettext and delete & 
re-download svn trunk.

Comment 9 by Bruno Finocchiaro, Jan 24, 2013

sorry but...
how is possible that only happens with the 2171 ?_?
however, I wanna try what you advise me ;)
thanks Chroma :)

Comment 10 by Bruno Finocchiaro, Jan 24, 2013

too strange, but you're right man ;)
I've uninstalled and re-installed MacPorts and GetText.
Now works great without any change!
Chroma thanks for support, today you are my man :D
Best regards from Italy!

Comment 11 by Cosmosis Jones, Jan 24, 2013

I assume this isn't really an issue?
Status: Invalid

Comment 12 by Bruno Finocchiaro, Jan 24, 2013

sorry CJ,
we discovered that the problem was from my OS
sorry again!

Comment 13 by Sen Haerens, Jan 24, 2013

Please reopen this issue.
There is a missing " in chameleon.pot (r2171). The attached 
diff fixes the msgmerge error when building the package.

Comment 14 by Sen Haerens, Jan 24, 2013

Forgot diff attachment.

Comment 15 by Bruno Finocchiaro, Jan 24, 2013

Nice, me and my OS are not the problem. :)
thanks Sen for this info!

Created: 11 years 2 months ago by Bruno Finocchiaro

Updated: 11 years 2 months ago

Status: Invalid

Followed by: 4 persons

Labels:
Priority:Medium
Type:Defect