Commit graph

21 commits

Author SHA1 Message Date
6067ad4d7a Rename package 2024-07-21 23:33:58 -07:00
7af07d2ba5 Add flag -no-locations
This flag controls whether translation location information is written.
2024-07-21 23:27:42 -07:00
Leonel Quinteros
d32dc82045
Merge pull request #83 from didrocks/fix-location-order
Order locations in ascii order
2023-08-29 12:40:39 -03:00
Didier Roche
bc62da24a3
Order locations in ascii order
As in the pkg-tree implementation, the walking of different dependencies
are not determinated, this means that we may have references swapping
between consecutive runs. Ensure we always order them the same way now.
2023-07-26 16:56:09 +02:00
Didier Roche
b65bc5e2b1
Add more test cases and refresh tests for pot generation
Ensure that the .po reflects latest translations (some were missing)
Add more translations to reflect the new fixed use cases.
2023-07-26 13:05:46 +02:00
Didier Roche
7f9fe4dccc
Fix multi-line and backquotes string pot generation
The extraction of gettext entry does not translate properly multiline nor
backquotes:
* Multilines are printed as is, instead of follow the gettext spec:
  https://www.gnu.org/software/gettext/manual/html_node/Normalizing.html
* Strings with backquotes as printed as “msgid `this is my string`”,
* Multilines strings with backquotes are formatted as multi-lines to, without
  closing quotes on each lines.

The loading is correct though, this only impact the generation file.
Those generated files are thus then invalid and can’t be compile to mo file.
2023-07-26 13:05:46 +02:00
Tim Green
d5f757e198 load package tree once and traverse 2021-09-16 19:02:06 +03:00
Benjamin Böhmke
c40a6e9dd5 xgotext: added verbose flag 2020-03-05 19:40:31 +01:00
Benjamin Böhmke
36588ae653 xgotext: updated README.md 2020-02-29 11:42:35 +01:00
Benjamin Böhmke
20f50a5bba xgotext: name generated files .pot 2020-02-28 16:56:38 +01:00
Benjamin Böhmke
5b0ba55f37 xgotext: added option to exclude directories 2020-02-27 19:59:03 +01:00
Benjamin Böhmke
df996c3ae1 xgotext: catch unknown variable type 2020-02-26 21:43:19 +01:00
Benjamin Böhmke
f46758caed xgotext: fixed parsing of error types 2020-02-26 21:08:59 +01:00
Benjamin Böhmke
478f4d29b7 added option to set default domain 2020-02-24 17:52:39 +01:00
Benjamin Böhmke
9091772533 fixed support for older go versions 2020-02-24 15:33:30 +01:00
Benjamin Böhmke
3b92b162e1 moved PO file writing to domain object 2020-02-23 10:08:48 +01:00
Benjamin Böhmke
b8c9a57c39 catch unsupported function calls 2020-02-23 10:00:43 +01:00
Benjamin Böhmke
1891633250 updated CLI README.md 2020-02-23 09:51:48 +01:00
Benjamin Böhmke
75a3d22c53 initial rework of xgotext 2020-02-22 22:37:17 +01:00
Leonel Quinteros
6431cb3aea Parse SetDomain methods 2019-02-18 18:09:32 -03:00
Leonel Quinteros
0e382cfe26 First implementation of CLI tool 2019-02-15 15:20:42 -03:00