icon, menü, asset-liste ergänzt

This commit is contained in:
Frederik Jaeckel 2022-11-09 21:49:33 +01:00
parent c415f64a81
commit 0d8ef5081e
14 changed files with 391 additions and 1 deletions

41
locale/convert_de2en.py Normal file
View file

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
# convert german 'de.po' to 'en.po'
lines = []
with open('de.po', 'rt') as fhdl:
lines = fhdl.readlines()
groups = []
group = {}
for line in lines:
if len(line.strip()) == 0:
if len(group) > 0:
groups.append(group)
group = {}
for x in ['msgctxt', 'msgid', 'msgstr']:
if line.startswith(x):
group[x] = line[len(x):].strip()
break
used_ids = []
with open('en.po', 'wt') as fhdl:
fhdl.write("""#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\\n"
""")
for line in groups:
if line['msgid'].strip() == '""':
continue
if line['msgctxt'] in used_ids:
raise ValueError('duplicate id: %s' % line['msgctxt'])
fhdl.write('msgctxt %s\nmsgid %s\nmsgstr %s\n\n' % (
line['msgctxt'],
line['msgid'],
line['msgid'],
))

65
locale/de.po Normal file
View file

@ -0,0 +1,65 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#############
# res.group #
#############
msgctxt "model:res.group,name:group_investment"
msgid "Investment"
msgstr "Investition"
msgctxt "model:res.group,name:group_investment_admin"
msgid "Investment Administrator"
msgstr "Investition Administrator"
##############
# ir.ui.menu #
##############
msgctxt "model:ir.ui.menu,name:menu_investment"
msgid "Investment"
msgstr "Investition"
msgctxt "model:ir.ui.menu,name:menu_asset"
msgid "Asset"
msgstr "Vermögenswert"
#############
# ir.action #
#############
msgctxt "model:ir.action,name:act_asset_view"
msgid "Asset"
msgstr "Vermögenswert"
####################
# investment.asset #
####################
msgctxt "model:investment.asset,name:"
msgid "Asset"
msgstr "Vermögenswert"
msgctxt "field:investment.asset,company:"
msgid "Company"
msgstr "Unternehmen"
msgctxt "field:investment.asset,company_currency:"
msgid "Company Currency"
msgstr "Unternehmenswährung"
msgctxt "field:investment.asset,company_currency_digits:"
msgid "Currency Digits (Ref.)"
msgstr "Nachkommastellen Währung (Ref.)"
msgctxt "field:investment.asset,currency:"
msgid "Currency"
msgstr "Währung"
msgctxt "field:investment.asset,currency_digits:"
msgid "Currency Digits"
msgstr "Nachkommastellen Währung"

48
locale/en.po Normal file
View file

@ -0,0 +1,48 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "model:res.group,name:group_investment"
msgid "Investment"
msgstr "Investment"
msgctxt "model:res.group,name:group_investment_admin"
msgid "Investment Administrator"
msgstr "Investment Administrator"
msgctxt "model:ir.ui.menu,name:menu_investment"
msgid "Investment"
msgstr "Investment"
msgctxt "model:ir.ui.menu,name:menu_asset"
msgid "Asset"
msgstr "Asset"
msgctxt "model:ir.action,name:act_asset_view"
msgid "Asset"
msgstr "Asset"
msgctxt "model:investment.asset,name:"
msgid "Asset"
msgstr "Asset"
msgctxt "field:investment.asset,company:"
msgid "Company"
msgstr "Company"
msgctxt "field:investment.asset,company_currency:"
msgid "Company Currency"
msgstr "Company Currency"
msgctxt "field:investment.asset,company_currency_digits:"
msgid "Currency Digits (Ref.)"
msgstr "Currency Digits (Ref.)"
msgctxt "field:investment.asset,currency:"
msgid "Currency"
msgstr "Currency"
msgctxt "field:investment.asset,currency_digits:"
msgid "Currency Digits"
msgstr "Currency Digits"