summaryrefslogtreecommitdiffstats
path: root/utils/i18n.go
Commit message (Collapse)AuthorAgeFilesLines
* Structured logging (#8673)Christopher Speller2018-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* Fixing misspell errors (#8544)Jesús Espino2018-03-291-1/+1
|
* Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * failing to find i18n shouldn't segfault The server was trying to handle the fact that it couldn't find the i18n directory, by emitting a translated log message... * fix utils.FindDir The attempts to find the directory in the parent or grandparent directory don't work if the current working directory was inside `enterprise`, with `enterprise` itself being a symlink as per the usual developer setup. Recurse to the root of the filesystem, cleaning the path along the way to work around this limitation (and allow tests to be run from an arbitrarily deep nesting level.) Fix corresponding usages to employ filepath.Join. * failing to find html templates shouldn't segfault * fail fast if the test user cannot be created * rework utils.FindDir to retain backwards compatibility
* general cleanup (#8387)Chris2018-03-071-5/+0
|
* add missing license headers, test to makefile (#7711)Chris2017-10-251-0/+3
|
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* PLT-6471 Properly panic when translations can't be loaded (#6414)Harrison Healey2017-05-231-11/+29
| | | | | | | | | | * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
* PLT-6322 log error messages in english (#6234)Corey Hulen2017-04-281-0/+2
|
* PLT-5548 Prevent server start if defaultLocate is not available (#5532)enahum2017-02-281-0/+4
| | | | | | * PLT-5548 Prevent server start if defaultLocate is not available * Add validation for supported locales
* PLT-3456 Fix Errors while starting the server (#3445)enahum2016-07-041-3/+8
| | | | | | * PLT-3456 AppErrors that are triggered before translations are loaded crash server or produce bad error messages. * Fixing tests
* PLT-1800 Load server side locale from the config.json (#3202)enahum2016-06-021-12/+19
| | | | | | | | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics * Fix localization on served locale file as plain/text * Remove github.com/cloudfoundry/jibber_jabber as vendor dependency * Fix get locale on login_controller
* Revert "PLT-1800 Load server side locale from the config.json" (#3201)Christopher Speller2016-06-011-19/+12
|
* PLT-1800 Load server side locale from the config.json (#3135)enahum2016-06-011-12/+19
| | | | | | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics * Fix localization on served locale file as plain/text * Remove github.com/cloudfoundry/jibber_jabber as vendor dependency
* Revert "PLT-1800 Load server side locale from the config.json" (#3133)Christopher Speller2016-05-271-20/+12
|
* PLT-1800 Load server side locale from the config.json (#3092)enahum2016-05-271-12/+20
| | | | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics * Fix localization on served locale file as plain/text
* Revert "PLT-1800 Load server side locale from the config.json (#3076)"Christopher Speller2016-05-241-20/+12
| | | | This reverts commit 34beaa569bfb32f1607375f1d5a22859322060d2.
* PLT-1800 Load server side locale from the config.json (#3076)enahum2016-05-241-12/+20
| | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics
* PLT-2115 Adding compliance=Corey Hulen2016-03-151-1/+5
|
* Adding english fallback=Corey Hulen2016-01-281-8/+10
|
* Adding english fallback to server=Corey Hulen2016-01-281-5/+15
|
* PLT-7 adding loc header=Corey Hulen2016-01-221-1/+1
|
* PLT-7 adding loc header=Corey Hulen2016-01-221-1/+1
|
* PLT-7 adding loc header=Corey Hulen2016-01-221-76/+5
|
* Merge pull request #1952 from ZBoxApp/PLT-7-goCorey Hulen2016-01-221-0/+9
|\ | | | | PLT-7: Refactoring api to use translations (chunk 2)
| * Refactoring api to use translations (chunk 2)Elias Nahum2016-01-221-0/+9
| | | | | | | | | | | | - Add spanish translations - Does not include tests - Add func to get the translations for a user locale
* | PLT-7 client side infra=Corey Hulen2016-01-211-9/+9
|/
* Fix bug to load the default locale if no system locale is foundElias Nahum2016-01-211-17/+6
|
* Refactoring api to use translations (chunk 1)Elias Nahum2016-01-211-1/+13
| | | | | | | | - Add spanish translations - Files in order by name from admin to export - Does not include api templates and tests - Fix web_test to load translations - Fix i18n to fallback to DEFAULT_LOCALE if no system locale found
* PLT-7 Adding translation function to context=Corey Hulen2016-01-191-0/+140