vinou / translations
Vinou Translation files
Installs: 1 159
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
- dev-develop
- 3.7.7
- 3.7.6
- 3.7.5
- 3.7.4
- 3.7.3
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.3
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.10
- 3.5.9
- 3.5.8
- 3.5.7
- 3.5.6
- 3.5.5
- 3.5.4
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.55
- 3.4.54
- 3.4.53
- 3.4.52
- 3.4.51
- 3.4.50
- 3.4.49
- 3.4.48
- 3.4.47
- 3.4.46
- 3.4.45
- 3.4.44
- 3.4.43
- 3.4.42
- 3.4.41
- 3.4.40
- 3.4.39
- 3.4.38
- 3.4.37
- 3.4.36
- 3.4.35
- 3.4.34
- 3.4.33
- 3.4.32
- 3.4.31
- 3.4.30
- 3.4.29
- 3.4.28
- 3.4.27
- 3.4.26
- 3.4.25
- 3.4.24
- 3.4.23
- 3.4.22
- 3.4.21
- 3.4.20
- 3.4.19
- 3.4.18
- 3.4.17
- 3.4.16
- 3.4.15
- 3.4.14
- 3.4.13
- 3.4.12
- 3.4.11
- 3.4.10
- 3.4.9
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.20
- 3.3.19
- 3.3.18
- 3.3.17
- 3.3.16
- 3.3.15
- 3.3.14
- 3.3.13
- 3.3.12
- 3.3.11
- 3.3.10
- 3.3.9
- 3.3.8
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.15
- 3.2.14
- 3.2.13
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.5
- 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2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-master
- dev-feature/cellar-report-module
- dev-feature/wine_facts
- dev-feature/+493_office-kundengruppen-und-filter
- dev-feature/+341_empty_module_lists
- dev-feature/+211_memberarea
- dev-feature/+173_organic_food_associations_(bio-verband)
This package is auto-updated.
Last update: 2024-12-16 02:03:32 UTC
README
The Vinou platform itself depends on this library and therefore it is continuously integrated and right under development. Regarding this the translation files contains work on every period of our platform work.
The following README documents the current status quo of translation definition rules. Regarding the huge amount of language keys and other webprojects that are depending on older coding guidelines the translation files looks sometimes really confusing.
Table of contents
- 1. Contribution
- 2. Coding Guidelines
- 3. Standard object keys
- 4. Object example
- 5. Twig extension
- Provider
1. Contribution
If you want to contribute, feel free to join and create pull request. We want to be sure that most of depending web projects could easily be updated, therefore it could take some time that your work is added. Feel free to contact us via PN, mail to kontakt@vinou.de or phone call to +49 61316245390.
2. Coding Guidelines
- If A key is used for an array of keys it is always plural, for example countries or wineRegions
- If A key identifies an Object or only a String it is always singular, for example wine, product, bundle
- All identifiers have to be lowerCamelCase. Hyphens, underscores or other separators are not allowed. In special cases ids may be used when translation represents static database objects like grapeTypes.
- If an object is used in more than two other objects, it may be defined under the general object
- If an object containes multiple static options the values should be defined in the parent object as array, for example: the product object has a field type with 3 static options, the options should be defined as "types" in object "product".
- All keys should be in alpha numerical order, except properties of base objects (see below).
"product": { "fields": { "type": "Type of product" }, "types": { "optionOne": "Option 1", "optionTwo": "Option 2", "optionThree": "Option 3" } }
3. Standard object keys
Each object may define certain standard keys shown below in preferred definition order.
4. Object example
"bundle": { "name": { "singular": "Weinpaket", "plural": "Weinpakete" }, "actions": { "addItem": "+ Artikel hinzufügen", "create": { "main": "Neues Weinpaket", "sub": "anlegen" } }, "fields": { "active": "aktiv", "articleNumber": { "label": "Art.-Nr.", "placeholder": "SKU 000 - 0000000" }, "category": "Kategorie", "description": "Beschreibung", "sorting": "Manueller Sortierindex (z.B. für den Shop)" }, "fieldSets": { "facts": "Daten & Fakten", "general": "Allgemeines", "items": "Artikel" }, "views": { "create": { "title": "Neues Weinpaket erstellen" }, "files": { "title": "Dateien", "empty": "Es liegen keine {label} zu diesem Weinpaket vor." } }, "filters": { "category": { "label": "Kategorie auswählen", "none": "Pakete ohne Kategorie anzeigen" }, "search": { "placeholder": "z.B. Name, Beschreibung" }, }, "dialogs": { "delete": "Möchtest Du dieses Weinpaket wirklich löschen?" }, "toasts": { "changed": "Weinpaket geändert!", "changeError": "Weinpaket konnte nicht geändert werden!", "created": "Weinpaket angelegt!", "createError": "Weinpaket konnte nicht angelegt werden!", "deleted": "Weinpaket gelöscht!", "deleteError": "Weinpaket konnte nicht gelöscht werden!", "imageDeleted": "Bild zum Weinpaket gelöscht", "imageUploaded": "Bild zum Weinpaket hochgeladen!" }, "hints": { "imageSize": "<b>Empfehlung für optimale Darstellung</b><br>Abmessungen: 1500x1500px<br/>Datei-Format: .png (freigestellt)" }, "packageTypes": { "mixed": "Gemischt", "surprise": "Überaschungspaket", "wineOnly": "Nur Wein", } }
5. Twig Extension
This library also contains a Twig extension. To implement this extension you can use this code.
$languageKey = 'de'; $twig = new \Twig\Environment(); $twig->addExtension(new \Vinou\Translations\TwigExtension($languageKey));
Afterwards you can use the translate filter in your template like this:
<p id="wine"> <a class="action-button"> <span class="main">{{ 'wine.actions.create.main' | translate }}</span> <span class="sub">{{ 'wine.actions.create.sub' | translate }}</span> </a> </p>
Provider
This Library is developed by the Vinou GmbH.
Vinou GmbH
Mombacher Straße 68
55122 Mainz
E-Mail: kontakt@vinou.de
Phone: +49 6131 6245390