Complete Spanish translations for account_do
This commit is contained in:
+29
-1
@@ -568,7 +568,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
|
||||
if line.strip()
|
||||
]
|
||||
|
||||
self.assertEqual(config.get('tryton', 'version'), '8.0.4')
|
||||
self.assertEqual(config.get('tryton', 'version'), '8.0.5')
|
||||
self.assertEqual(
|
||||
set(lines('tryton', 'depends')),
|
||||
{'account', 'ir'})
|
||||
@@ -609,6 +609,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
|
||||
"'CHANGELOG'",
|
||||
"'pyproject.toml'",
|
||||
"'**/*.xml'",
|
||||
"'**/*.po'",
|
||||
"'doc/**/*.rst'",
|
||||
"'tests/**/*.rst'",
|
||||
]:
|
||||
@@ -755,6 +756,33 @@ class AccountDoUnitTestCase(unittest.TestCase):
|
||||
with self.subTest(marker=marker):
|
||||
self.assertNotIn(marker, text)
|
||||
|
||||
def test_spanish_translations_cover_module_strings(self):
|
||||
translations = {
|
||||
'Tax Kind': 'Clasificación fiscal',
|
||||
'ITBIS': 'ITBIS',
|
||||
'ITBIS Withholding': 'Retención de ITBIS',
|
||||
'ITBIS Acquirer Withholding': (
|
||||
'Retención de ITBIS por adquirencia'),
|
||||
'ISR Withholding': 'Retención de ISR',
|
||||
'Selective Consumption Tax (ISC)': (
|
||||
'Impuesto Selectivo al Consumo (ISC)'),
|
||||
'INDOTEL Contribution (CDT)': (
|
||||
'Contribución al Desarrollo de las Telecomunicaciones (CDT)'),
|
||||
'Statutory Tip': 'Propina legal',
|
||||
'Other Taxes': 'Otros impuestos',
|
||||
}
|
||||
for language in ['es', 'es_419']:
|
||||
text = (MODULE_DIR / 'locale' / f'{language}.po').read_text(
|
||||
encoding='utf-8')
|
||||
with self.subTest(language=language):
|
||||
for source, target in translations.items():
|
||||
self.assertIn(f'msgid "{source}"', text)
|
||||
self.assertIn(f'msgstr "{target}"', text)
|
||||
self.assertIn(
|
||||
'msgctxt "field:account.tax,tax_kind:"', text)
|
||||
self.assertIn(
|
||||
'msgctxt "field:account.tax.template,tax_kind:"', text)
|
||||
|
||||
def test_spanish_chart_has_complete_parallel_identifiers(self):
|
||||
pairs = [
|
||||
('account_chart_do_en.xml', 'account_chart_do_es_419.xml'),
|
||||
|
||||
Reference in New Issue
Block a user