39 Commits

Author SHA1 Message Date
Johannes Meyer
5af833bb6d translation: Add support for ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer
8fe282b9aa translation: Only allow to generate module locales 2021-05-28 14:03:36 +02:00
Johannes Meyer
7b488d7f93 swag: Fix violations of PSR-12
PSR-2 has been deprecated and phpcs v3.5.3
now checks for the successor PSR-12
2019-12-04 11:28:08 +01:00
Johannes Meyer
96f3807610 GettextTranslationHelper: Properly fix module source paths 2019-05-27 11:02:34 +02:00
Markus Frosch
67e207f781 Add translation TestCommand for DateFormatter
To get examples for formatted dates and times
2017-11-21 15:47:46 +01:00
Markus Frosch
389b23af81 GettextTranslationHelper: Avoid descending into symlinks
This basically avoids loops...

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-11-08 09:53:19 +01:00
Markus Frosch
43423f9453 GetTextTranslationHelper: Make sure we ignore any dotfile or vendor dir
If you are using composer, or ship any other code in dotfile or vendor
directories, we should not parse that for translation.

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-11-08 09:53:19 +01:00
Johannes Meyer
91a315764c GettextTranslationHelper: Ensure that file source locations are relative
fixes #2684
2017-01-25 09:56:21 +01:00
Johannes Meyer
2f8d4739b8 GettextTranslationHelper: Don't create backup files and cleanup temporary files
fixes #2683
2017-01-24 16:04:17 +01:00
Michael Friedrich
08a82daea3 Update to icinga.com
refs #2687
2017-01-18 12:04:43 +01:00
Alexander A. Klimov
dc4bcdabb6 Gettext: respect context while parsing mt(...) 2016-04-01 14:19:40 +02:00
Alexander A. Klimov
474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Johannes Meyer
bbadb0b75c Add support for no-op translations
refs #5600
2015-09-16 14:16:40 +02:00
Eric Lippmann
834017f6e5 translation: Always use the correct path to the Icinga library in the translation helper
refs #9615
2015-07-31 11:30:26 +02:00
Eric Lippmann
8d137aa575 translation: Load msgfmt path from config or default to /usr/bin/env msgfmt
refs #9615
2015-07-30 15:55:05 +02:00
Eric Lippmann
d4c7261562 translation: Fix msgmerge default
refs #9615
2015-07-30 15:53:39 +02:00
Eric Lippmann
c9c97f3c61 translation: Load xgettext path from config or default to /usr/bin/env xgettext
refs #9615
2015-07-30 15:53:13 +02:00
Eric Lippmann
7160eb600a translation: Load msgmerge path from config or default to /usr/bin/env msgmerge
refs #9615
2015-07-30 15:51:41 +02:00
Eric Lippmann
219dcdda37 translation: Set config on the translation helper
Installations from package will provide a config for the translation module which defines the appropriate gettext tools paths.

refs #9615
2015-07-30 15:47:35 +02:00
Eric Lippmann
6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann
916868a051 Revert "Add support for "core" modules and make the setup module such a module"
This reverts commit 8af13f564b3f8e69c2c1abcda5d7e2e5266c3c7d.

The setup module must only be loaded when necessary not always.
2014-12-09 16:28:05 +01:00
Johannes Meyer
8af13f564b Add support for "core" modules and make the setup module such a module
refs #7163
2014-11-10 17:34:49 +01:00
Alexander Fuhr
b38ef9c0bd Implement plural and context based translation functionality
refs #6982
2014-09-16 15:19:23 +02:00
Alexander Fuhr
e2b5e05f21 Implement plural translation (testing) 2014-09-15 14:11:42 +02:00
Alexander Fuhr
583fd46f15 Experimental Plural Translation Implementation
Personal BACKUP
2014-09-11 18:04:10 +02:00
Alexander Fuhr
6cf8307e0d GettextTranslationHelper::updateHeader() - rename vars for matchResults 2014-09-11 13:39:32 +02:00
Alexander Fuhr
7d45384289 Fixes translations module missing header language line
fixes #7154
2014-09-09 15:52:26 +02:00
Alexander Klimov
45638b218c Throw IcingaException rather than Exception
fixes #7014
2014-08-27 16:03:15 +02:00
Alexander Klimov
7ff51caed0 Remove leading backslashes from the targets of use statements
- use \Exception;
+ use Exception;
2014-08-27 15:51:49 +02:00
Eric Lippmann
1dea19504f Revert "Remove leading backslashes from the targets of use statements"
This reverts commit 87a59675011a4cf284d8e44c4fb66042ad84c39f.

At least 'modules/doc/run.php' issues a warning about "The use statement with non-compound name 'Zend_Controller_Router_Route' has no effect"
2014-08-27 12:24:11 +02:00
Alexander Klimov
87a5967501 Remove leading backslashes from the targets of use statements
- use \Exception;
+ use Exception;
2014-08-27 11:16:44 +02:00
Johannes Meyer
b146a8c311 Relax locale code validation to just a format check
fixes #6930
2014-08-21 10:07:07 +02:00
Johannes Meyer
b36fe5d564 Fix version access while refreshing translations 2014-08-21 10:07:07 +02:00
Johannes Meyer
3105c2059e Remove license headers from all files
refs #6309
2014-07-15 13:43:52 +02:00
Johannes Meyer
7f99be73fd Adjust usages of Icinga\Util\File to suit the new interface introduced earlier 2014-06-26 15:57:14 +02:00
Johannes Meyer
005c52bb4a Refactor translation cli commands and implement po-file compilation
refs #5533
2014-01-30 10:51:10 +01:00