I developed an app in german (de-DE) and in order to translate the captions, I added the TranslationFile feature in my app.json.
This generates a translation file, where the source-language is "en-US":
<file datatype="xml" source-language="en-US" target-language="en-US" original="RandomApp">
Not thinking much about it, I changed the source-language to "de-DE" since my captions are in german and I want them to be translated to english.
Hence:
<file datatype="xml" source-language="de-DE" target-language="en-US" original="RandomApp">
The problem that I now have, is that when I publish my extension and switch between english and german as my language in business central, all I get are the english captions.
The source language will always be "en-US" meaning translations will be from English (United States) to some other language.
The captions in your source code thus needs to be in English (United States) and then you add the translation file for the german language.
Related
I'm transcribing various mp3 files in Spanish. I'd like to use IBM Watson's speech to text API using R and am following the instructions in this tutorial (http://rpubs.com/Cartwheel/stt). I'm able to successfully transcribe a test mp3 file with English audio using this code, but I haven't figured out a way to modify it to listen for Spanish audio (the default language is American English).
This is the main function from the tutorial for transcribing mp3s. As it is, it successfully transcribes English audio. In this function, url, username, and password are defined previously.
watson.speech_to_text.recognize <- function(audio_file)
{ return(POST(url=paste(url,"/v1/recognize",sep=""),
authenticate(username,password),
add_headers("Content-Type"="audio/mp3"),
body = (file = upload_file(audio_file))
))}
I've tried changing the url ending to something like the following, but have had no success.
"{url}/v1/recognize?model=ex-MX_BroadbandModel"
I would like to translate my installer wizard (Qt Installer Framework based) in English or French (OS language depends).
I added those lines in the "installscript.qs" file :
Component.prototype.retranslateUi = function()
{
component.languageChanged();
}
and I added those in "config.xml" file :
<Installer>
...
<Translations>
<Translation>fr.qm</Translation>
</Translations>
</Installer>
But everything is ok (all long texts are translated) (in French) but the buttons like "Next", "Cancel", "Quit" are not translated (see the screenshot) :
ps: I don't want to use C++ code. (only Script or Xml)
You need to load the Qt translation file in addition to your own .qm file(s). The file is located in the translation sub-folder of your Qt installation folder (e.g. ./usr/share/qt5/translations/). For some languages it seems sufficient to load qt_xx (where XX should be replaced with your locale), but for German I had to load "qtbase_XX" to translate the Next and Cancel buttons. In example for the fr locale they are named qt_fr.qm and qtbase_fr.qm.
EDIT:
Because of the comment of John Smith I checked the Installer framework source and the framework is not capable loading more than one translation file:
See installer-framework/src/libs/installer/component.cpp
/*!
Loads the translations matching the name filters \a qms inside \a directory. Only translations
with a base name matching the current locale's name are loaded. For more information, see
\l{Translating Pages}.
*/
void Component::loadTranslations(const QDir &directory, const QStringList &qms)
So my original answer above (which would lead to a translated QWizard::CancelButton) is not working.
I got the Quit button of the Installer Frameworks translation example translated to German by correcting the de.ts file provided within the framworks source in installer-framework/src/sdk/translations
The original translation coming with the feramework is missing an &:
So, changing:
<context>
<name>QInstaller::IntroductionPage</name>
...
<message>
<source>Quit</source>
<translation>Beenden</translation>
</message>
to
<context>
<name>QInstaller::IntroductionPage</name>
...
<message>
<source>&Quit</source>
<translation>Beenden</translation>
</message>
and recompiling the Framework leads to a translated Quit button (Beenden) within the framework.
I did not tried, but studying /installer-framework/src/libs/installer/packagemanagergui.cpp should enable you to translate the Next button, too.
Adding a context may help:
function Component()
{
qsTranslate("QInstaller::IntroductionPage", "&Quit");
}
It woked after Next and Back, but could not find where to write the qsTranslate().
I have a TP5 english image and installed the german language with the language pack image over lpksetup. Now I wanted to switch to german and changed every language setting but still the names and descriptions from features and roles in ServerManager are still in english.
After this I installed an german image to verify if the features and roles are always in english but they were in german.
So I hope someone has an idea.
Thanks in advance
Okay I did not get it working with TP5 but with the Evaluation version I did the following:
I added the language over the GUI and downloaded the language pack over the "Options" button.
Then i executed the following CMDlets:
Set-WinUserLanguageList de-DE -Force
Set-Culture de-DE
Set-WinHomeLocation -GeoId 94
Set-WinsystemLocale de-DE
After this I see that the system downloads the "german handwritings" and then I set settings with intl.cpl
control.exe intl.cpl,,/f:"C:\Users\Administrator\Desktop\mui.xml"
The content of mui.xml is the following:
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<!-- User List -->
<gs:UserList>
<gs:User UserID="Current" CopySettingsToSystemAcct="true"
CopySettingsToDefaultUserAcct="true"/>
</gs:UserList>
</gs:GlobalizationServices>
After this I reboot the system and everything is fine.
Best regards
In my Drupal 7 site:
THere is one view block which displays title and date (say meeting_date).
When i switch to French language for the site, the date for (May 2014) is displayed as (Mai 2014), I want the French language for the site to display (mai 2014).
I have checked various Language specific configuration settings. But no luck.
Needed a way to do this.
Thanks.
If you had installed all the multilingual-internationalization modules, you can go to admin/config/regional/translate/translate, and search for "May" (en) and you can translate yourself to "mai" (fr).
In Drupal 7, I have three languages set up: English, French and German. To translate the contact form URL, I've done the following for the French language:
Go to: admin/config/search/path
Click "Add Alias"
Language: select "French"
Existing system path: enter "contact"
Path alias: enter "contactez-nous"
Save
This is working fine. Then I'm trying to do the same for German using the "kontakt" path alias, but each time I go to the translated path (/de/kontakt) I see the following message:
Oops, looks like this request tried to create an infinite loop. We do
not allow such things here. We are a professional website!
This doesn't happen for the French language.
As I've setup the French language a long time ago, perhaps another step is involved but I can't figure it. Any idea ?
Fixed on production site: this only happened on staging environment but I still can't understand why!