evening to make error free translation…

waiting from last few weeks to update few translated files, those have errors and I know that:-)

gnome-power-manager – > last time I did a lot of translation for this and 2 translation Errors were there, I got those, but was in hurry so committed as it is. Finally It is over, but need to find fine editor on Mac. Poedit, LocFactory Editor not work as I was not expert with those, finally KDE4 installatin helped me and lokalize Make it possible.

kde4 – plasma’s translation was really un-understandable, and just today I got on my newly laptop, that line is first to see:-(
that line hit me and I started work to remove Error.

so, finally committed changes and gnome/kde desktop for Punjabi is more good than before.

Advertisements

my first ‘hg’ commit to mozilla

I was trying mozilla l10n commit with new version control system, Mercurial.
Finally today I cheched out en-US and pa-IN (for checkout, please check Docs),
started with few translation for one file and used step as mention in Mozilla Docs
following is output of my terminal
——
amanpreet:pa-IN Preet$ hg commit -m “updating translation first time with hg for Punjabi (pa) by Amanpreet Singh Alam”
amanpreet:pa-IN Preet$ hg outgoing
comparing with ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
changeset: 2:0c8a3c71fe9d
tag: tip
user: A S Alam
date: Tue Aug 12 11:47:59 2008 +0530
summary: updating translation first time with hg for Punjabi (pa) by Amanpreet Singh Alam

amanpreet:pa-IN Preet$ hg push
pushing to ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files

amanpreet:pa-IN Preet$ hg push
pushing to ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
no changes found
———

first ‘hg push’ is so slient that I can’t understand that anything commited or not, so I run once again
and tried to fresh checkout and Yes, changes are there. So Please don’t except any version for new files
as in CVS.

So, finally log can be check Mozilla-l10n-central

First Punjabi hg commit “Push” can be found at
First Punjabi Commit Log.

Mac and Python Error for hg

I was trying with hg (hg is a distributed
version control ) for my Firefox translation Project. Python was installed previously on macBook
(Mac OS X 10.5.4), but while running hg command, it showed error like following:
———–
amanpreet-singh-brars-macbook:~ Preet$ hg ****
Traceback (most recent call last):
File “/usr/local/bin/hg”, line 18, in
mercurial.util.set_binary(fp)
File “/Library/Python/2.5/site-packages/mercurial/demandimport.py”, line 74, in __getattribute__
self._load()
File “/Library/Python/2.5/site-packages/mercurial/demandimport.py”, line 46, in _load
mod = _origimport(head, globals, locals)
File “/Library/Python/2.5/site-packages/mercurial/util.py”, line 33, in
_encoding = locale.getlocale()[1]
File “/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py”, line 460, in getlocale
return _parse_localename(localename)
File “/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py”, line 373, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: UTF-8
———
last line was making some know hint, something wrong with locale setting.

Tried to set various setting from terminal, finally it is fixed and here are commands I used

—–
$ printenv LANG

$ export LC_ALL=en_US.UTF-8

$ export LANG=en_US.UTF-8
—–
if you want those changes each time you log-in then make ~/.bashrc file and add
those lines there.

Note: I have not reboot my machine after making those changes, please don’t know
whether work or not;-)