I am using Google Doc viewer to show online PDF url like this: https://docs.google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf and I am using this URL using a javascript open window action like this:
window.open(url,target='_blank','width=800,height=600,scrollbars=1');
where URL is https://docs.google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf
My question is: Google doc viewer takes language as English by default. Can I change this language somehow so that buttons next/previous on screen appear in Dutch and not in English?
You can add the hl query parameter to specify a different locale using ISO language codes. For instance, to use Dutch you should add &hl=nl as in the following link:
https://docs.google.com/a/google.com/viewer?url=www.education.gov.yk.ca/pdf/pdf-test.pdf&hl=nl
Related
My requirement: I want to add one more language say Spanish in footer section of language drop down list on Electronic UK storefront. Once we select the Spanish language our website content should change to Spanish Language.
I have read the hybris wiki related to Internationalization and Localization but I could not find any optimal solution.
Please help me in this to achieve the above functionality.
Open hmc or backoffice. Open your current base store, navigate to languages and add spanish to the list.
Notice, that there will be no data for the language, so your homepage might look very empty.
If you want to add localizations for the cms and product content, you have to add the language to all your catalog versions. Otherwise, your language wont show up in the cmscockpit/productcockpit.
Everything that appears on your homepage as words separated by dots (e.g. "search.placeholder") is not saved in the database. Those are spring messages. They are maintained in a file in your storefront. Find them in
/mystorefront/web/webroot/WEB-INF/messages/
by the names
base_XX.properties
theme-my-theme_XX.properties
site-my-site_XX.properties
where XX is the isocode of your language (in your case es). If the file does not exist, create it. You can use the english file (e.g. base_en.properties) as a template and change the values to spanish ones. Beware, there are a LOT!
There might be more pitfalls, but those are the ones, that came to my mind.
I've a DNN 7.2 site with 3 languages and search functionality .
The search works only and only if the language cookie is set to en-US .
If the culture in the search service URL is fr-FR and the language cookie contains "fr-fr", which is very normal, the search will not work, if i changed the cookie manually to be "en-US" and left the url culture as is "fr-fr" the search works as expected and return french results .
Why this happens ? Is there a fix ?
DNN7.2 Search is Locale-Aware, meaning content is indexed and found based on language/culture.
The fr-fr page can only be found when search is executed from a French/French page, at the same time, culture-neutral pages can be found from any language. So if your portal has only one installed language (en-US), you will not see any of the multilingual options of the module.
The main points to check:
Language pack installed
Content Localization enabled
Add/Enable individual languages (you can do this from the Admin/Languages page as SuperUser)
I need to change the language of whole project. I am using jsf. In default I used English. Now i need to convert it in Italian and Spanish.
I did it by manually writing in the property class. Just like:
and in xhtml I need to to put the property by manually.
My question is that, is there any way to convert it automatically?? I mean I just click on Italian, and it will display in italian language.
You need to create one file by language (with the correct name)
And fill every - key manually ...
Netbeans help you to display all languages in the same table.
The automaticaly option is Google trad.. it's not good solution.
I develop a application and submit it on iTunes. and i also did localization for this application for German language. but in German market it showing Language : English. but i want to show both language English and German. like attach sample is showing :
Thx
Mitesh
see your localization string name change it to localizable.strings and then whatever your key put in your whatever language file.
I've developed a site in english (admin & front end) but the site needs to be in a Dutch. Locale and i18n modules have been installed.
Dutch has been added to the list of languages and set as default in admin/settings/language.
I'm now wondering how I can translate strings like the date output? For ex, when I print out a date from a view, it still outputs the days and months in English.
In admin/settings/language/configure I've selected "path prefix only" but I don't get the language code in the url's and links. How is this achieved?
Thanks
You can translate month names, days and much more using Translation interface. Navigate to:
Administer -> Site Building -> Translate interface (admin/build/translate) -> Search (admin/build/translate/search)
and use the search form to locate the string you wish to translate.
Since you've already added Dutch to your site, you can download entire Dutch translation on http://localize.drupal.org. Site is currently in beta, so you will have to login using your Drupal.org credentials.
Use this link to export Dutch translation of Drupal. Just make sure you choose All in one file format so you can easily import it in your site using Translate interface -> Import
To get the language code in the URLs you will have to enable Multilingual support for each content type you need translated (admin/content/types) by opening edit and selecting desired option under Workflow settings -> Multilingual support.
After that make sure that you specify Dutch/English language while adding or editing nodes.