en:app:photovision:translate
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:app:photovision:translate [2022/02/27 20:13] – external edit 127.0.0.1 | en:app:photovision:translate [2024/01/08 19:00] (current) – sgj | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Photovision translation ====== | ====== Photovision translation ====== | ||
- | ** Photovision | + | ===== Photovision |
Translations directory: /languages | Translations directory: /languages | ||
File format: Gnu gettext | File format: Gnu gettext | ||
+ | |||
+ | Translation file (PhotoVision 2.x): PhotoVision2.[ISO 639-2 Code].po, example => PhotoVision2.plk.po | ||
- | Translation file: PhotoVision.[ISO 639-2 Code].po, example => PhotoVision.plk.po | + | Translation file (PhotoVision 1.x): PhotoVision.[ISO 639-2 Code].po, example => PhotoVision.plk.po |
- | | + | |
- | ** Plugins** | + | ===== Plugins |
+ | |||
+ | Internal translation in [plugin].ini | ||
+ | |||
+ | Section in plugin cfg file: Translation_[ISO 639-2 Code] | ||
+ | Example Polish translation: | ||
+ | <code ini> | ||
+ | [Translation_PLK] | ||
+ | ID_000=Przetłumaczony tekst 1 | ||
+ | ID_001=Przetłumaczony tekst 2 | ||
+ | ID_002=Przetłumaczony tekst 3 | ||
+ | </ | ||
+ | |||
+ | |||
+ | Pascal Script UI: | ||
+ | <code pascal> | ||
+ | |||
+ | Example | ||
+ | <code pascal> | ||
+ | TranslatePluginUI(' | ||
+ | </ | ||
+ | |||
+ | ===== Plugins (PhotoVision 1.x) ===== | ||
Translations directory: /languages | Translations directory: /languages | ||
Line 19: | Line 42: | ||
Default plugin translation | Default plugin translation | ||
- | Pascal Script: function Translate(const default_text: | + | Pascal Script: |
Translation file: Default.[ISO 639-2 Code], example => Default.plk | Translation file: Default.[ISO 639-2 Code], example => Default.plk | ||
Line 25: | Line 48: | ||
Custom plugin translation | Custom plugin translation | ||
- | Pascal Script: function TranslateUI(const default_text: | + | Pascal Script: |
Translation file: [Plugin_Name].[ISO 639-2 Code], example => MSPaint.plk | Translation file: [Plugin_Name].[ISO 639-2 Code], example => MSPaint.plk |
en/app/photovision/translate.1645989236.txt.gz · Last modified: 2022/02/27 20:13 by 127.0.0.1