Adriaan de Groot
b27bc11975
[libcalamares] Merge locale tests files
...
- No need for a separate .h in most test cases
2020-08-04 12:59:55 +02:00
Callum Farmer
0c4dc71d5c
[libcalamares] Update SPDX identifiers.
...
Update CppJob.h
Update CalamaresConfig.h.in
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.cpp
Update CalamaresConfig.h.in
Update CppJob.cpp
Update CppJob.h
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.h
Update ProcessJob.cpp
Update ProcessJob.h
Update PythonHelper.cpp
Update PythonJob.cpp
Update PythonJob.h
Update PythonHelper.h
Update PythonJobApi.cpp
Update PythonJobApi.h
Update Settings.cpp
Update Settings.h
Update GeoIPJSON.cpp
Update GeoIPJSON.h
Update GeoIPTests.cpp
Update GeoIPTests.h
Update GeoIPXML.cpp
Update GeoIPXML.h
Update Handler.cpp
Update Handler.h
Update Interface.cpp
Update Interface.h
Update test_geoip.cpp
Update CountryData_p.cpp
Update Label.cpp
Update Label.h
Update LabelModel.cpp
Update LabelModel.h
Update CountryData_p.cpp
Update CountryData_p.cpp
Update Lookup.cpp
Update Lookup.h
Update Tests.cpp
Update Tests.h
Update TimeZone.cpp
Update TimeZone.h
Update TranslatableConfiguration.cpp
Update TranslatableConfiguration.h
Update ZoneData_p.cxxtr
Update cldr-extractor.py
Update zone-extractor.py
Update Actions.h
Update Actions.h
Update Descriptor.h
Update InstanceKey.cpp
Update Module.cpp
Update Module.h
Update Requirement.cpp
Update RequirementsChecker.h
Update RequirementsModel.cpp
Update RequirementsModel.h
Update Tests.cpp
Update Manager.cpp
Update Manager.h
Update Tests.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update KPMTests.cpp
Update FileSystem.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update Mount.cpp
Update Mount.h
Update PartitionIterator.cpp
Update PartitionIterator.h
Update PartitionIterator.h
Update PartitionQuery.cpp
Update PartitionQuery.h
Update PartitionSize.cpp
Update PartitionSize.h
Update Sync.cpp
Update Sync.h
Update Tests.cpp
Update Tests.h
Update BoostPython.h
Update CalamaresUtilsSystem.cpp
Update CalamaresUtilsSystem.h
Update CommandList.cpp
Update CommandList.h
Update Dirs.cpp
Update Dirs.h
Update Entropy.cpp
Update Entropy.h
Update Entropy.cpp
Update Logger.cpp
Update Logger.h
Update NamedEnum.h
Update NamedSuffix.h
Update PluginFactory.cpp
Update PluginFactory.h
Update RAII.h
Update RAII.h
Update Retranslator.cpp
Update Retranslator.h
Update String.cpp
Update String.h
Update TestPaths.cpp
Update Tests.cpp
Update Tests.h
Update UMask.cpp
Update UMask.h
Update Units.h
Update Variant.cpp
Update Variant.h
Update Yaml.cpp
Update Yaml.h
Update moc-warnings.h
2020-06-03 12:52:53 +01:00
Adriaan de Groot
d348977d07
[libcalamares] Fix tests
...
- the test checks that the default locale is C or en_US .. let's just
make it so instead of relying on the environment. This fixes tests
on my dev-laptop, which happens to be set to en_NL (with volapuk
date format).
2020-04-21 13:41:04 +02:00
Adriaan de Groot
e49fb74847
[libcalamares] Fix more tests
2020-02-21 17:58:55 +01:00
Adriaan de Groot
2dff2d9d70
[libcalamares] TZRegion is hard to copy
...
- delete the copy and move constructors
- adjust tests (which were just interested in simple tr() behavior) to use TZZone instead
2020-01-07 10:41:14 +01:00
Adriaan de Groot
fc7f49b610
[libcalamares] Expand tests for TimeZone translations
2019-11-26 12:28:41 +01:00
Adriaan de Groot
71f3614eb7
[libcalamares] Add TimeZone support to build
...
- Add to CMakeLists.txt
- Test basic scenarios
2019-11-26 11:20:33 +01:00
Adriaan de Groot
251e16e72c
[libcalamares] Allow en_US locale for tests as well
2019-08-07 12:31:52 +02:00
Adriaan de Groot
4febe477cf
[libcalamares] Add isEmpty() to TranslatedString
...
- Massage the implementation a bit, don't insert a meaningless
copy of the key as the untranslated message.
- Add isEmpty() to check for presence of the untranslated message.
- Document API.
- Update tests.
2019-08-06 11:53:35 +02:00
Adriaan de Groot
39b7e4c55f
Merge branch 'translatable-configuration'
2019-08-06 00:07:48 +02:00
Adriaan de Groot
764c775f08
[libcalamares] Tighten tests, add special case
...
- The tests should be run in C locale, otherwise the plain get()
function uses the current locale, which will fail (e.g. running
LANG=nl ./libcalamareslocaletest returns the Dutch strings for
plain get, which isn't what we expect).
- sr@latin is still special.
2019-08-06 00:05:24 +02:00
Adriaan de Groot
a9292d0c75
[libcalamares] Implement getting the string
2019-08-05 23:54:53 +02:00
Adriaan de Groot
50d74c4eca
[libcalamares] Add get() to the string
...
- Look up the translation of the requested string with the current
or a specific locale. This implementation is a stub.
- Add tests for the getter.
2019-08-05 23:37:25 +02:00
Adriaan de Groot
28293ef77a
[libcalamares] Expand tests of TranslatableString
2019-08-05 23:30:51 +02:00
Adriaan de Groot
5d6ccfe8fc
[libcalamares] Adjust tests for new Esperanto support
2019-08-05 18:30:50 +02:00
Adriaan de Groot
18e2f2ae52
[libcalamares] Add tests for new TranslatedString
...
- Test that construction works as expected
- Add count() method to TranslatedString for testing purposes.
2019-08-05 17:57:32 +02:00
Adriaan de Groot
7fcb7be1e4
[libcalamares] Apply current coding style to libcalamares/locale/
2019-08-04 22:17:12 +02:00
Adriaan de Groot
a5cef2175e
[libcalamares] Add tests for the locale service
...
- Minimal tests just check that all the availableTranslations()
entries have a reasonable language setting.
- Checks that Esperanto is still broken as a locale in Qt.
2019-06-18 15:27:59 +02:00