![]() |
|
Adding sentences in .MO/PO lang files - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Adding sentences in .MO/PO lang files (/thread-14005.html) |
Adding sentences in .MO/PO lang files - ctdlg - 2024-11-29 Hello, Adding sentences in .MO/PO lang files - acrylian - 2024-11-29 That is currently not possible for the core. itself. But if you use a custom theme it can have its own translation as can custom plugins. Please see:
Adding sentences in .MO/PO lang files - ctdlg - 2024-11-29 The more I use Zenphoto, the more I find it fantastic ! Adding sentences in .MO/PO lang files - acrylian - 2024-12-01 Thanks, glad to hear. Adding sentences in .MO/PO lang files - ctdlg - 2024-12-04 I cannot load my translation file. What I did : a file Then, using my terminal, I created a pot file : Then, I opened this pot file using Poedit, translated my sentences, added version and author, compiled the MO Po file contains lines like I tried adding my translations in index.php, but without success : next is translated (Zenphoto translation), but not Site created (My translation.) It is not clear for me how and where to add my own theme translations ! Adding sentences in .MO/PO lang files - acrylian - 2024-12-04 The location is wrong with It must be /themes/mytheme/locale/(…) and you also need to use the proper translating https://docs.zenphoto.org/1.6.5/namespaces/default.html#function_gettext_th Adding sentences in .MO/PO lang files - ctdlg - 2024-12-04 Thank you, acrylian. My path was bad, and I used It is more simple than what I thought ! Adding sentences in .MO/PO lang files - acrylian - 2024-12-04 Great, we tried to make that as simple as possible. |