How Can I translate EasyUI DateBox - jquery-easyui

I want to translate the easyui datebox english words to another languages (browser language).
as you see in the attached picture below month names, days shortcuts and 'today' 'close' words, I want to change it to the browser language.

you can open your jeasyui library folder , see trough folder , there is a locale folder , you can copy one of them and translate it.

Related

handle translation of website

I finished my website and want to translate it in 3 other languages.
The question is not how to translate it, but how to handle the different languages, when you don't use a CMS.
I have all my script with English text in it.
I'm able to translate it in Dutch, French and German, so I'll have 3 folders: 1 folder for each language.
The problem is when I wan't to upgrade the website:
If I change code from the English folder, I'd like to juste copy-and-paste this code for the 3 other languages.
Problem is that I will always have to retranslate it to 3 other languages again.
How do big websites handle translation?
Having multiple folders, with every folder = 1 language, is the way to proceed?
Text coming from database is a better solution? With a table for each language?
Make a function with the parameters: string code, language
So for example:
translate('error_1','de_DE');
that "would" return an specified error in German.
So you could create 3 .csv files with all the strings you would need.
And having multiple folders is rubbish.
On the bis pages it just seems as they use different folders but the "folder" is handled via. .htaccess and is changed to i.e. index.php?page=main&language=de_DE

Localization in nopcommerce

I change language on nopcommerce and in admin panel and when i'am log in is all ok..but when unknown user visit my site, they see onlu tags. You see this when you are logged into the system IMAGE and this is what user see when he is not loged in IMAGE You cna see differences you can see in the fist top menu [log in, wishlist, cart..].
I try to change language in menu configuration>language>..
And i try to import new language too.. but always i have that problem..
It means the language you have chosen doesn't have entries for those resources. You can add them manually in Admin -> Configuration -> Languages -> the language and then add a record for each using that tag as the ResourceName.
I just follow these steps to change language on nopcommerce and they worked fine for me :-
go to Configuration → Languages.
To add a new language, click Add new. In the Add a new language
window.
Fill all the fields :-
1.The Name of the new language.
2.The Language culture — a specific language code
(Eg- (France). fr-FR etc.)
When updating the Language culture field, please make sure the
appropriate CLDR package is installed for this culture. You can
set CLDR for the specified culture in the Localization panel of
the Configuration → Settings → General Settings page.
Localization settings
The Unique SEO code — two-letter language SEO code(Eg- fr).
The Flag image file name — enter the flag image file name. Which
is saved under the …/images/flags directory.
Select Right-to-Left if needed (eg- Arabic or
Hebrew).
Select the Default currency for a specific language.
Limited to stores option allowing to set this language for a
specific store(s).
Publish the language to enable it to be visible and selected by
visitors to your store.
Display order of the language.(Eg 1 top of the list).
Here is the screen shot of add new language :-
AddNewLanguage
After adding a new language, you will be able to import and export
string resources using the Import resources and Export resources
buttons at the top of the page. The String resources panel on the
language edit page will allow you to view the existing language
resources and add new ones manually.
Click on Save button to save the langauge.
After saving the new language, if you refresh the page you can see a
dropdown at the top of the banner in Admin panel and if you navigate
to the Public store you can also see it below the Administration
but if u select that language from the dropdown it will show you
only the Resource Name not the value for that you need to import the
language pack.
Without Importing language Pack
Import language pack
Download the language pack from :-
https://www.nopcommerce.com/en/translations
Choose the nopCommerce version and download the desired language
pack.
After that click on the Edit button beside that language in the
Language List page.
Click Import resources on the top of the Edit page or you can see
it during the add new language after click on the save and
continue button. And specify the path to the language pack
file (*.xml) that you downloaded and click on Import Resources
button.
NOTE: It can take up to several minutes.
After sucessfully Import of the file you can check the resources for
that language in the String Resources or you can simply search for
that resource after click on string resource at the bottom of the
info tab by the Resource Name or value.
String resources
Just select the language that you want from the dropdown and it
will look like this
After Importing Language Pack
Follow this link to see more about how to add new language.
https://docs.nopcommerce.com/en/getting-started/advanced-configuration/localization.html
Hope this Help.

Localization in tx_news extension TYPO3 6

I'm using News System Extension 2.1 for my website. My TYPO3 version is 6.1.
The language key taken by tx_news is default, I would like to change the key to dk or nl or something. I changed the local language of TYPO3 using this:
config.locale_all = nl_NL
This solves the problem while displaying List of news, but when I try to display a Date Menu, it takes the default to English.
Maybe because the ViewHelpers I used for displaying List is default FLUID and the ViewHelpers used for displaying Date Menu are something else(They use translate key. Default View which comes with tx_news)
How do I change the language of tx_news to the language I desired to?
config.locale_all is basically used to change format of dates (more info on http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html)
In order to get localized labels, you need:
To download localization packages in Backend using the Language module
To set up your website with the language you want, using config.language (and possibly config.sys_language_uid if your website is going to be multilingual, then you would have to create sys_language records at root as well)
Please have a look at the frontend localization guide:
http://docs.typo3.org/typo3cms/FrontendLocalizationGuide/

Localization for a very simple app.. How to connect a button?

I have a very simple app which only contains a PickerView, UILocalNotification, UIAlertview and less than 8 views. What I want is:
I have a main view which contains two buttons one says English and the other says French.
What in my mind is:
When the user hits English it'll take him to the Project I have right now,
However, when the User hits French it'll take him to a duplicated views that I'd simply and manually change and translate it's labels into French.
** Now my question is ** how do I translate the PickerView, LocalNotification and the AlertView? and how to connect the French button to these translations?
From what I've googled and read here in SO is that I can get the strings out and list them into Localizable.strings but I still don't know how to make my french button ask for these strings? Also, is there an easier and simpler way? any idea?
Thanks,
Kindly try this for doing localization
http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
For buttons use something like this
[self.yourButton setTitle:NSLocalizedString(#"YOUR_KEY", #"Comment") forState:UIControlStateNormal];
Do not duplicate your views and view controller just for the sake of localization, considering that for both languages have the same layout and everything only thing that would change is the language. So add English strings and French strings to your project and use NSLocalizedString to get these values.
Note:NSLocalizedString works with device language only so if you want to change the app's language manually try this. I have used AMLocalizedString in many of my projects and they work fine.
Hi as you want to make it localized only at App basis not at device basis hence NSLocalisedString will not work you have to manage it so you have to take two different files and you have to fetch the string value on the basis of selected language. In similar manner as LocalisedString works as in localization there are multiple .strings file created for languages and it works in a way to select default language of the device and shows the text from the localised file.

UIWebView localication

I'm developing multi languages application and intent to have DONE button localized. This button is appear in UIWebView when user clicked on dropdown ("select" tag) with multiselect:
By default, this is always in English. However, if you set CFBundleAllowMixedLocalizations to YES in .plist file, you will be able to get it in current SYSTEM language:
Here, DONE is written in Chinese, when text in select in Arabic. It is because current system languages (i.e. set in Settings) is Chinese, but inside app I selected Arabic so app is using Arabic bundle with Arabic strings file.
I wonder, is any possibility to localize "DONE" button to current Application's language, but not system language?
Don't use "Application's language". Simply use the system language, like all other applications do.
I'm sure it's possible to somehow achieve it, but you're simply taking the wrong approach to localization.

Resources