Joas Schilling
5a514a9a41
Correctly replace all PHP placeholders with the parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 vuotta sitten
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 vuotta sitten
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 vuotta sitten
Daniel Kesselberg
2440ee6b84
Add simple unit test for findLanguageFromLocale
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 vuotta sitten
Thomas Citharel
93011579fe
Add tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
7 vuotta sitten
Georg Ehrke
e111da777a
Make L10N->l provide weekdayName
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
6 vuotta sitten
Roeland Jago Douma
f167e65d49
Fix getMock L10NTest
7 vuotta sitten
Joas Schilling
94ad54ec9b
Move tests/ to PSR-4 (#24731)
* Move a-b to PSR-4
* Move c-d to PSR-4
* Move e+g to PSR-4
* Move h-l to PSR-4
* Move m-r to PSR-4
* Move s-u to PSR-4
* Move files/ to PSR-4
* Move remaining tests to PSR-4
* Remove Test\ from old autoloader
8 vuotta sitten
Morris Jobke
76455204c0
Inject server root - allows proper testing and separation of concerns
8 vuotta sitten
Lukas Reschke
cb1a64b949
Check whether ownCloud is installed
ownCloud might not yet be setup. This causes an issue as the user config requires a setup ownCloud. Thus this needs a block whether ownCloud is installed or not.
Fixes https://github.com/owncloud/core/issues/21955
8 vuotta sitten
Joas Schilling
8f9cc51559
Add tests for the new l10n class
8 vuotta sitten
Joas Schilling
1199619518
Move legacy test file to new location
8 vuotta sitten
Joas Schilling
2cb26a9151
Fix the tests
8 vuotta sitten
Joas Schilling
043625ee52
Move findLanguage() and setLanguageFromRequest() to factory
8 vuotta sitten
Roeland Jago Douma
eccd9ca1cb
Remove unused deprecated function
8 vuotta sitten
Morris Jobke
d331e0d4f8
Replace OC_Config in tests with IConfig calls
8 vuotta sitten
Morris Jobke
6b53f7c40e
[l10n] remove unused static methods
8 vuotta sitten
Joas Schilling
5fc004f8ea
Add a test of what everyone thinks should be the result of this method
9 vuotta sitten
Joas Schilling
ae60108692
Revert "Correctly fallback to english, if the plural case is not translated"
This reverts commit cbad5c998b
.
9 vuotta sitten
Joas Schilling
cbad5c998b
Correctly fallback to english, if the plural case is not translated
9 vuotta sitten
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 vuotta sitten
Thomas Müller
2f19de11e4
adding console command to generate javascript translation files based on existing php translation files
read server side translations from json files
9 vuotta sitten
Thomas Müller
a359fe7e6a
adding unit tests for en_GB and en-GB - just to verify
9 vuotta sitten
Thomas Müller
c8e8945efb
implement localizations based on punic
9 vuotta sitten
Andreas Fischer
8166aaf82c
Some tests for OC_L10N::findLanguage()
10 vuotta sitten
Thomas Müller
0e3dea7111
adding test case for a numeric value
11 vuotta sitten
Andreas Fischer
b6b1bc5d09
Add datetime test for numeric string.
11 vuotta sitten
Thomas Müller
19e3780ef2
remove unneeded vars from unit test
11 vuotta sitten
Thomas Müller
e04bf0aaeb
unit tests for plural translations added
11 vuotta sitten