126 Commits

Author SHA1 Message Date
c8ac87a60c update module to own version 2020-07-29 18:59:14 +02:00
67d7b9ca60 update module to own version 2020-07-29 18:09:14 +02:00
bb9b8c2585 fix path on different OS 2020-07-29 16:47:49 +02:00
b4ab6497b5 update module to own version v1.5.0 2020-07-27 18:17:50 +02:00
2441e55972 „go.mod“ ändern 2020-07-27 16:06:38 +00:00
Ben Sarah Golightly
75a1fb9b04 Add variants of Get functions with existence checks
Currently, a translation that doesn't exist just defaults to the
passed message ID.

It can be helpful to be able to catch these missing cases e.g. to
save to a log.

This PR implements variants ending in 'E' like GetE, GetNE.

This wasn't implemented at the package-level scope, because for
quick translations like that the extra flexibility probably isn't
needed.
v1.4.1
2020-07-23 00:28:56 +01:00
Leonel Quinteros
3bb41424ff Merge pull request #40 from chrisvaughn/cv/ar_bug
call Translation.Get & GetC directly
2020-04-22 12:11:35 -03:00
Chris Vaughn
d791a97f01 call Get & GetC directly instead of using plural=1 for package methods 2020-04-19 14:50:56 -05:00
Chris Vaughn
192fa01364 call Translation.Get & GetC directly instead of calling Translation.GetN with default of plural=1
* add correct Arabic pluralform rules to test
2020-04-16 17:29:45 -05:00
Leonel Quinteros Carbano
362a1d6915 Add xgotext CLI tool installation to build process 2020-04-15 22:16:10 -03:00
Leonel Quinteros Carbano
60d22914a5 Remove old Build configuration. 2020-04-15 22:12:20 -03:00
Leonel Quinteros Carbano
f7464201e6 Add Github Build action badge 2020-04-15 22:08:55 -03:00
Leonel Quinteros
d26d707c73 Create build.yml 2020-04-15 22:03:51 -03:00
Leonel Quinteros
b6df672e9a Merge pull request #37 from bboehmke/xgotext_verbose
verbose flag for xgotext
2020-03-06 10:52:42 -03:00
Benjamin Böhmke
c40a6e9dd5 xgotext: added verbose flag 2020-03-05 19:40:31 +01:00
Leonel Quinteros
be1a13b346 Merge pull request #36 from bboehmke/xgotext_fixes
xgotext fixes
2020-02-29 16:38:15 -03: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
Leonel Quinteros
4aa838b8c3 Merge pull request #35 from bboehmke/xgotext_rework
rework of xgotext
2020-02-25 11:15:17 -03: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
2b59b30398 Update README.md 2019-11-13 14:59:02 -03:00
Leonel Quinteros
208807f5ca Create go.yml 2019-11-13 14:46:21 -03:00
Leonel Quinteros
823ca32c7a Fallback Po's missing plural translation using plural forms when available. Use western rule n==1 convention only on Locale object without Domain. Fixes #34 2019-10-21 14:43:48 -03:00
Leonel Quinteros
99a9166ded Remove code coverage tool 2019-07-10 18:23:45 -03: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
Leonel Quinteros
ff3209d159 Remove dep files 2018-12-21 14:53:49 -03:00
Leonel Quinteros
0216b71049 Merge pull request #30 from draven-archive/master
Fix gotext.GetD with unloaded domain
2018-12-17 10:02:03 -03:00
draveness
37bac2fe57 Fix gotext.GetD with unloaded domain 2018-12-07 12:32:39 +08:00
Leonel Quinteros
7b73c0d36b Update README 2018-09-12 15:31:27 -03:00
Leonel Quinteros
477ce49ddf Update Travis configuration. v1.4.0 2018-09-12 15:07:17 -03:00
Leonel Quinteros
f28243c54b Add support for Go Modules. Closes #27 2018-09-12 15:03:50 -03:00
Leonel Quinteros
4cbf30d337 Make Locale and Po objects serializable. Closes #23 2018-09-07 18:14:38 -03:00
Leonel Quinteros
302c88af99 Add arabic translation test. See #25 2018-08-14 11:01:14 -03:00
Leonel Quinteros
8e9d9df2e2 Allow Locale backends to work with different Translator sources using AddTranslator method for Locale object. Fixes #22 2018-07-05 11:37:25 -03:00
Leonel Quinteros
431a313411 Merge branch 'master' of github.com:leonelquinteros/gotext 2018-05-29 12:46:28 -03:00
Leonel Quinteros
3c52f5c10b Make golint happy. Fixes #21 2018-05-29 12:46:11 -03:00
Leonel Quinteros
7fd6ac336a Update ISSUE_TEMPLATE.md 2018-05-14 16:24:26 -03:00
Leonel Quinteros
9161ab1e62 Update PULL_REQUEST_TEMPLATE.md 2018-05-14 16:22:29 -03:00
Leonel Quinteros
2044aeae11 Update ISSUE_TEMPLATE.md 2018-05-14 16:15:38 -03:00
Leonel Quinteros
7c73cc2975 Fix travis tests 2018-04-08 18:25:47 -03:00
Leonel Quinteros
48726a37dd Update README file. Update Travis config 2018-04-08 17:49:58 -03:00