system
(system)
18 Kwiecień 2009 21:11
#1
Mam pytanie.
Jak napisać wielojęzyczną aplikacje w C++ Zrobiłem edytor tekstowy w Dev-C++ na bibliotekach QT chcę zrobić tak żeby można było wybrać język tego programu z plików .ini lub .lng
Jestem początkujący w C++
_alex
([alex])
18 Kwiecień 2009 22:06
#2
system
(system)
18 Kwiecień 2009 22:55
#3
Czytałem ten temat ale dalej niewiem co gdzie dopisać Azresztą czciałem tak zrobić że jeden plik to jeden język a nie w jednym.
nr47
(Sawyer47)
19 Kwiecień 2009 07:17
#4
Jeśli piszesz z użyciem Qt to możesz użyć Qt Linguist:
http://doc.trolltech.com/4.4/linguist-manual.html
system
(system)
19 Kwiecień 2009 10:38
#5
A nie ma tekstu po polsku
nr47
(Sawyer47)
19 Kwiecień 2009 11:33
#6
Nie, nie ma, jeśli chce się programować to wypada znać angielski.
system
(system)
19 Kwiecień 2009 12:03
#7
Przetłumaczyłem ten tekst google, ale dalej nie wiem jak to zrobić czytałem też na innych stronach. Jak stworzyć plik .TS ?
nr47
(Sawyer47)
19 Kwiecień 2009 12:15
#8
Creating Translation Files Translation files consist of all the user-visible text and Ctrl key accelerators in an application and translations of that text. Translation files are created as follows: 1. Run lupdate initially to generate the first set of .ts translation source files with all the user-visible text but no translations. 2. The .ts files are given to the translator who adds translations using Qt Linguist. Qt Linguist takes care of any changed or deleted source text. 3. Run lupdate to incorporate any new text added to the application. lupdate synchronizes the user-visible text from the application with the translations; it does not destroy any data. 4. Steps 2 and 3 are repeated as often as necessary. 5. When a release of the application is needed lrelease is run to read the .ts files and produce the .qm files used by the application at runtime. For lupdate to work successfully, it must know which translation files to produce. The files are simply listed in the application’s .pro Qt project file, for example: (…)
Bez podstaw angielskiego trudno Ci będzie uczyć się programowania, przecież dokumentację w pierwszej kolejności pisze się po angielsku, ew. później tłumaczy na inny język, ale bardzo rzadko bo angielski to elementa lingvo wśród programistów.
system
(system)
19 Kwiecień 2009 12:20
#9
Stworzyłem plik ts jak zrobić zeby go mój program czytał?
greh
(greh)
20 Kwiecień 2009 20:18
#10
zadeklarować na początku programu przy pomocy #include