You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can gen a en.pot from go code, but how to gen the other languages scaffold ?
I call my targets POGO - PO and GO :)
my make file is like this:
# step 1: Extract text from go to EN pot.pogo-run-extract: pogo-run-dep
cd$(POGO_RUN_GO_SRC_PATH)&&$(POGO_RUN_CMD) -o $(POGO_RUN_PO_SRC_EN_PATH)/messages.pot *.go
# step 2: Gen other lang pot file scaffold from EN Potpogo-run-gen: pogo-run-dep
# ???cd$(POGO_RUN_GO_SRC_PATH)&&$(POGO_RUN_CMD) -h
# step 3: Merge changes in EN to other lang pot filespogo-run-merge-h: pogo-run-dep
cd$(POGO_RUN_GO_SRC_PATH)&&$(POGO_RUN_MERGE_CMD) -h
Would make sense to add text data folder maybe too ? I use the stat project now as a reference.
The text was updated successfully, but these errors were encountered:
gedw99
changed the title
How to gen the other lang files
How to gen the other lang files ?
Mar 1, 2025
My project is intended to be a clone of the original xgettext, and I am only trying to replicate its functionality
I can gen a en.pot from go code, but how to gen the other languages scaffold ?
The ideal would be to use msginit to create the po file of another language, and then apply msgmerge with the template and the created file.
But since all that is not finished yet, there is still no way to “get” those other files.
What you can do in the meantime is to run xgotext --lang=my-lang -o ./my-path/my-lang/default.po . but it only serves to generate the template
Please note that I am referring to the formatting of all the code that is still in beta, I have not yet released the v2.0.0 version that still has many changes ahead, mainly in the API
I call my targets POGO - PO and GO :)
Speaking of that, I think I should rename the project, what it is now is far away from its original concept and the name doesn't fit anymore
I am working on making this work with https://github.com/hajimehoshi/guigui and https://github.com/starfederation/datastar
For now just getting it working with https://github.com/Tom5521/fsize
I can gen a en.pot from go code, but how to gen the other languages scaffold ?
I call my targets POGO - PO and GO :)
my make file is like this:
Would make sense to add text data folder maybe too ? I use the stat project now as a reference.
The text was updated successfully, but these errors were encountered: