javascript - how to generate po file from js file using poedit -
i using gettext.js library localize contents generated js file. situation is, have create , write each , every po files manually. know can scan php files gettext strings using poedit. so, possible scan js files gettext strings using poedit?
achieved creating new parser of python language in poedit.
file > preferences > parsers > new
language:
js
list of extension:
*.js
parser command:
xgettext --language=python --force-po -o %o %c %k %f
item in keyword list:
-k%k
item in input files list:
%f
source code charset:
--from-code=%c
i found tutorial while searching on this, helped me attain situation tutorial here>>
actually tutorial in french , link google translated(to english) one.
Comments
Post a Comment