Discussion:
generate po files
Igurpi
2010-05-27 23:31:18 UTC
Permalink
I have generated my .po file using the "cake i18n extract" command in
the shell. But in my cakephp app, I have some translations with the
"__d" function: For example: "__d('admin', 'value')" where 'admin' is
the domain name. I expected to get an admin.po file automatically with
the shell function (as well as default.po), but it mixes all the
translations into a one file (default.po).
I've also tried to look into my app files using poedit, but if I
config to extract the key of __d function, it takes the first
parameter, and it should take the second one, so doesn't work. I know
I could generate myself a admin.po file via text editor but it's not
very usable, because each time a change is made, I have to edit
manually the file.
Any ideas for getting this work????
Thanks!!!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Igurpi
2010-05-29 09:04:23 UTC
Permalink
Any idea with this issue?? :-(
Post by Igurpi
I have generated my .po file using the "cake i18n extract" command in
the shell. But in my cakephp app, I have some translations with the
"__d" function: For example: "__d('admin', 'value')" where 'admin' is
the domain name. I expected to get an admin.po file automatically with
the shell function (as well as default.po), but it mixes all the
translations into a one file (default.po).
I've also tried to look into my app files using poedit, but if I
config to extract the key of __d function, it takes the first
parameter, and it should take the second one, so doesn't work. I know
I could generate myself a admin.po file via text editor but it's not
very usable, because each time a change is made, I have to edit
manually the file.
Any ideas for getting this work????
Thanks!!!
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Dilip Godhani
2010-05-29 09:11:57 UTC
Permalink
Po file mean what???
can u give us in details??
Post by Igurpi
Any idea with this issue?? :-(
Post by Igurpi
I have generated my .po file using the "cake i18n extract" command in
the shell. But in my cakephp app, I have some translations with the
"__d" function: For example: "__d('admin', 'value')" where 'admin' is
the domain name. I expected to get an admin.po file automatically with
the shell function (as well as default.po), but it mixes all the
translations into a one file (default.po).
I've also tried to look into my app files using poedit, but if I
config to extract the key of __d function, it takes the first
parameter, and it should take the second one, so doesn't work. I know
I could generate myself a admin.po file via text editor but it's not
very usable, because each time a change is made, I have to edit
manually the file.
Any ideas for getting this work????
Thanks!!!
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group, send email to
http://groups.google.com/group/cake-php?hl=en
--
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: dilip-m2C33VuovIuZEO45NX+***@public.gmane.org
dilip.godhani-***@public.gmane.org
Web.: www.entouragesolutions.com
m. 9913822582

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Zaky Katalan-Ezra
2010-05-29 10:28:59 UTC
Permalink
If you use poedit you don't have to edit the po files after every code
change even if you created the initial po file by yourself.
You just need to configure poedit to reference your code folders.
Post by Igurpi
Any idea with this issue?? :-(
Post by Igurpi
I have generated my .po file using the "cake i18n extract" command in
the shell. But in my cakephp app, I have some translations with the
"__d" function: For example: "__d('admin', 'value')" where 'admin' is
the domain name. I expected to get an admin.po file automatically with
the shell function (as well as default.po), but it mixes all the
translations into a one file (default.po).
I've also tried to look into my app files using poedit, but if I
config to extract the key of __d function, it takes the first
parameter, and it should take the second one, so doesn't work. I know
I could generate myself a admin.po file via text editor but it's not
very usable, because each time a change is made, I have to edit
manually the file.
Any ideas for getting this work????
Thanks!!!
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group, send email to
http://groups.google.com/group/cake-php?hl=en
--
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Continue reading on narkive:
Loading...