I had a look in the documentation to update translations, but how do I make those .mo files when I'm on a Mac? poEdit is not an option nor is shell access.
i have no experience with Mac, because i have neither one nor access to one.
Just send your translation files (.po) to me and i will make the corresponding .mo for you.
Jens
jhave
Joined: 2003-03-04
Posts: 48
Posted: Sun, 2003-11-09 14:09
Tim_j wrote:
Hi,
i have no experience with Mac, because i have neither one nor access to one.
Just send your translation files (.po) to me and i will make the corresponding .mo for you.
Jens
Thanks Jens, but it is an existing Danish translation "customized to my needs", so if Joan could help me out, you don't have to bother with it (every time I decide to modify it....)
Joan, I'm running Panther (10.3)
Tim_j
Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2003-11-09 14:35
jhave: okay, you decide
Jens
joan
Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-11-09 15:33
jhave,
So basically, you have unix. But you have some learning ahead of you. Don't worry, it will be worth while, but a little painful to start off.
You need to learn to use terminal. Thisseems like a good starting place. Go through the tutorial until you can change directory to gallery/po directory in terminal.
Then type at the command line:sh make_mo_files.sh -po da_DK and hit return. If you see OK 5 times, then you are done. If you see Fail or any other error messages, come back here and we will help you get it working.
jhave
Joined: 2003-03-04
Posts: 48
Posted: Sun, 2003-11-09 15:41
joan wrote:
jhave,
...
Go through the tutorial until you can change directory to gallery/po directory in terminal.
Then type at the command line:sh make_mo_files.sh -po da_DK and hit return. If you see OK 5 times, then you are done. If you see Fail or any other error messages, come back here and we will help you get it working.
Hmmm. I thought I tried to do that, but I will try again. It said "command not found"... I will try again! Thank!
jhave
Joined: 2003-03-04
Posts: 48
Posted: Sun, 2003-11-09 15:53
This is the result:
[njord:~/downloads/gallery/po] jhave% sh make_mo_files.sh -po da_DK-gallery.po
make_mo_files.sh: line 64: cd: make_mo_files.sh: No such file or directory
Checking ../locale OK
only da_DK-gallery.po
Found : da_DK-gallery.po
Language = da_DK
Checking if ../locale/da_DK/LC_MESSAGES exists OK
Making ../locale/da_DK/LC_MESSAGES/gallery.mo filemake_mo_files.sh: line 111: msgfmt: command not found
failed
[njord:~/downloads/gallery/po] jhave%
I will study the tutorial as well...
joan
Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-11-09 16:27
Unzip the attached file, copy it to /usr/bin, chmod it to executable:
% chmod +x /usr/bin/msgfmt
or
% sudo chmod +x /usr/bin/msgfmt
and try again.
jhave
Joined: 2003-03-04
Posts: 48
Posted: Sun, 2003-11-09 17:52
Well, getting more Unix geeky by the minute:
This comes up now:
njord:~/downloads/gallery/po] jhave% sh make_mo_files.sh -po da_DK-gallery.po
make_mo_files.sh: line 64: cd: make_mo_files.sh: No such file or directory
Checking ../locale OK
only da_DK-gallery.po
Found : da_DK-gallery.po
Language = da_DK
Checking if ../locale/da_DK/LC_MESSAGES exists OK
Making ../locale/da_DK/LC_MESSAGES/gallery.mo filedyld: msgfmt can't open library: /sw/lib/libintl.1.dylib (No such file or directory, errno = 2)
make_mo_files.sh: line 150: 4767 Trace/BPT trap msgfmt $po_file --output-file=../locale/$lang/LC_MESSAGES/$filename
failed
[njord:~/downloads/gallery/po] jhave%
joan
Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-11-09 23:27
OK, we will turn you into a unix geek yet
You are going to have to build some things on your machine - or get Jens to build the .mo file for you.
If you decide to roll up your sleeves, I suggest you install Fink, which will make your life easier. After you have installed it, you can just type:
fink install gettext
and it will download build and install it all for you.
jhave
Joined: 2003-03-04
Posts: 48
Posted: Mon, 2003-11-10 20:10
this is not the forum for Unix wizardry, but I'm handed this after installing Fink:
[njord:~] jhave% fink install gettext
sudo /sw/bin/fink install gettext
Password:
Information about 1103 packages read in 6 seconds.
No packages to install.
[njord:~] jhave%
I just try and the same thing again?
jhave
Joined: 2003-03-04
Posts: 48
Posted: Mon, 2003-11-10 23:49
I can now create the .mo files! Thanks for the tip about Fink, Joan! I will probably dive further into it.... ;)
joan
Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-11-11 00:12
A genuine pleasure - welcome to the darkside
ProTON
Joined: 2003-12-09
Posts: 3
Posted: Tue, 2003-12-09 09:43
Hi, i just upgraded 1.4-pl2 -> 1.4.1, updated my translation and wanted to create .mo files. But .sh script don't work. I've tried couple of snapshots from cvs (including current one). But still i'm getting following error when i execute make_mo_files.sh or update_po_files.sh
Checking ../locale OK
only lt_LT
lt_LT
Found : ../locale/lt_LT/lt_LT-gallery_core.po
Stripped: lt_LT-gallery_core.po
make_mo_files.sh: ${module1/.po}: bad substitution
Posts: 3473
What Mac OS are you running?
Posts: 6818
Hi,
i have no experience with Mac, because i have neither one nor access to one.
Just send your translation files (.po) to me and i will make the corresponding .mo for you.
Jens
Posts: 48
Thanks Jens, but it is an existing Danish translation "customized to my needs", so if Joan could help me out, you don't have to bother with it (every time I decide to modify it....)
Joan, I'm running Panther (10.3)
Posts: 6818
jhave: okay, you decide
Jens
Posts: 3473
jhave,
So basically, you have unix. But you have some learning ahead of you. Don't worry, it will be worth while, but a little painful to start off.
You need to learn to use terminal. Thisseems like a good starting place. Go through the tutorial until you can change directory to gallery/po directory in terminal.
Then type at the command line:
sh make_mo_files.sh -po da_DK
and hit return. If you see OK 5 times, then you are done. If you see Fail or any other error messages, come back here and we will help you get it working.Posts: 48
Hmmm. I thought I tried to do that, but I will try again. It said "command not found"... I will try again! Thank!
Posts: 48
This is the result:
I will study the tutorial as well...
Posts: 3473
Unzip the attached file, copy it to /usr/bin, chmod it to executable:
% chmod +x /usr/bin/msgfmt
or
% sudo chmod +x /usr/bin/msgfmt
and try again.
Posts: 48
Well, getting more Unix geeky by the minute:
This comes up now:
Posts: 3473
OK, we will turn you into a unix geek yet
You are going to have to build some things on your machine - or get Jens to build the .mo file for you.
If you decide to roll up your sleeves, I suggest you install Fink, which will make your life easier. After you have installed it, you can just type:
fink install gettext
and it will download build and install it all for you.
Posts: 48
this is not the forum for Unix wizardry, but I'm handed this after installing Fink:
I just try and the same thing again?
Posts: 48
I can now create the .mo files! Thanks for the tip about Fink, Joan! I will probably dive further into it.... ;)
Posts: 3473
A genuine pleasure - welcome to the darkside
Posts: 3
Hi, i just upgraded 1.4-pl2 -> 1.4.1, updated my translation and wanted to create .mo files. But .sh script don't work. I've tried couple of snapshots from cvs (including current one). But still i'm getting following error when i execute make_mo_files.sh or update_po_files.sh
Checking ../locale OK
only lt_LT
lt_LT
Found : ../locale/lt_LT/lt_LT-gallery_core.po
Stripped: lt_LT-gallery_core.po
make_mo_files.sh: ${module1/.po}: bad substitution
running redhat - redhat 7.2 (2.2.14)
PHP 4.3.1
gettext 0.13
bash-1.14.7-16
i searched the forum but found nothing familiar. please help.