Tell me what you think of these 3 screenshots taken from Ubuntu. You click the flag in the top right corner to change language.
I still need to do more work on the translations.
Search found 78 matches
- Wed Mar 04, 2020 9:58 am
- Forum: Announcements and Discoveries
- Topic: Multi-lingual interface for Dynamo
- Replies: 1
- Views: 3351
- Tue Feb 18, 2020 2:06 pm
- Forum: Open Discussion
- Topic: Developing for the Big 3
- Replies: 4
- Views: 3082
Developing for the Big 3
Up until today, my network analysis program called Dynamo was only available for MS-Windows and Linux (with GTK+). Earlier today at about 8am, I started looking into trying to get MacOS to run in a virtual machine on my desktop PC running MS-Windows 10. Well it's now 1:58pm, so in the past 6 hours I...
- Fri Feb 14, 2020 9:34 am
- Forum: C++ Development
- Topic: Elevate privileges at Runtime
- Replies: 10
- Views: 1028
Re: Elevate privileges at Runtime
One of the drawbacks of this approach of using a starter program is that my application will be in memory three times. However if I wanted to be a real miser with RAM then I could get my main application to reuse the memory that is wasted by the starter program.
- Thu Feb 13, 2020 3:52 pm
- Forum: C++ Development
- Topic: Elevate privileges at Runtime
- Replies: 10
- Views: 1028
Re: Elevate privileges at Runtime
It displays a nice GUI interface for the user to enter their superuser password if I change the system call to: "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /dev/shm/prog_binary" This is exactly what I'm looking for but now I just want to try make it so that the binary data for my main progra...
- Thu Feb 13, 2020 3:21 pm
- Forum: C++ Development
- Topic: Elevate privileges at Runtime
- Replies: 10
- Views: 1028
Re: Elevate privileges at Runtime
I got this to work in Linux just now with the following code for the starter program: #include <stdlib.h> #include <string.h> #include <sys/shm.h> #include <sys/mman.h> #include <sys/stat.h> /* For mode constants */ #include <sys/types.h> #include <fcntl.h> /* For O_* constants */ #include <unistd.h...
- Thu Feb 13, 2020 1:35 pm
- Forum: C++ Development
- Topic: Elevate privileges at Runtime
- Replies: 10
- Views: 1028
Re: Elevate privileges at Runtime
David, I see that your code can start a child process as root. What I really want to do though is to take the current process and elevate it to root. If it's not possible to elevate a process to root, then here's my next idea: (1) Take my Dynamo application and embed it within another exectuable. Le...
- Tue Feb 11, 2020 3:59 pm
- Forum: C++ Development
- Topic: Embedding translations in binary (with country flag)
- Replies: 2
- Views: 411
Re: Embedding translations in binary (with country flag)
wxMSW has the class "wxResourceTranslationsLoader" for loading ".mo" files embedded in the binary.
- Tue Feb 11, 2020 3:04 pm
- Forum: C++ Development
- Topic: Embedding translations in binary (with country flag)
- Replies: 2
- Views: 411
Embedding translations in binary (with country flag)
This is all still a little half-baked but I've put some stuff together for embedding translations in the binary file for your application (for every platform -- not just for MS-Windows). I have all of this working for my network analysis application called 'Dynamo'. So far I have it in English, Germ...
- Mon Feb 10, 2020 9:53 pm
- Forum: C++ Development
- Topic: [Translations] Load one catalogue over anoher
- Replies: 4
- Views: 462
Re: [Translations] Load one catalogue over anoher
Out of curiosity - do you know any German language? Are you doing any sorting in your software? And I believe the question you asked - yes, it is by design. I can comfortably have a conversation in English (my first language), Lao and Irish. My Irish is a little rusty though, I'd want to go to an I...
- Mon Feb 10, 2020 8:49 pm
- Forum: C++ Development
- Topic: [Translations] Load one catalogue over anoher
- Replies: 4
- Views: 462
[Translations] Load one catalogue over anoher
My application is written in English and uses the underscore prefix for translateable strings. So far I have a German and Irish translation. I have noticed something though. If I do these steps in order: (1) Load the catalog for German (2) Recreate the GUI (3) Load the catog for Irish (4) Recreate t...
- Mon Feb 10, 2020 8:06 pm
- Forum: C++ Development
- Topic: How to change language at runtime
- Replies: 8
- Views: 876
Re: How to change language at runtime
I've written a separate function that calls "SetLabel" on all the widgets after you change language, and this works fine. It even looks okay without me resizing anything, but I might take a look at calling the proper resize functions tomorrow. At one point my application was able to switch language ...
- Mon Feb 10, 2020 4:07 pm
- Forum: C++ Development
- Topic: Multilingual application (without locales or internationalisation)
- Replies: 30
- Views: 2193
Re: Multilingual application (without locales or internationalisation)
I interpret it as: "I will put the translation files inside my executable". Do ou have different interpretation? The point I was trying to make is that the translation files need to be loaded from disk into RAM at some point. I won't save microseconds anywhere. If you wanted to shave those microsec...
- Mon Feb 10, 2020 10:32 am
- Forum: C++ Development
- Topic: How to change language at runtime
- Replies: 8
- Views: 876
Re: How to change language at runtime
Would it work out OK, instead of destroying the main dialog, if I were to call all the "SetText" methods on all the widgets and then try to resize them? That would be possible, but is it worth the effort? How often do users actually change the GUI language? Usually only once and then it shouldn't m...
- Mon Feb 10, 2020 10:10 am
- Forum: C++ Development
- Topic: Read from input iterator (wxResourceTranslationsLoader)
- Replies: 8
- Views: 720
Re: Read from input iterator (wxResourceTranslationsLoader)
I have this working now with my ".mo" files embedded in the exectuable file as global char arrays.
I'll post code for wxInputIteratorTranslationsLoader later. Maybe it's an idea worth adding to wxWidgets 3.1.x ?
I'll post code for wxInputIteratorTranslationsLoader later. Maybe it's an idea worth adding to wxWidgets 3.1.x ?
- Mon Feb 10, 2020 6:17 am
- Forum: C++ Development
- Topic: Multilingual application (without locales or internationalisation)
- Replies: 30
- Views: 2193