OpenCms localization
Hi, I downloaded OpenCMS 7.5.3 Make setup. Read doc. I want to do Hindi locale. Any good detailed tutorial available for multilanguage site. ...
Hi, I downloaded OpenCMS 7.5.3 Make setup. Read doc. I want to do Hindi locale. Any good detailed tutorial available for multilanguage site. ...
I'm using the following function to retrieve date and time: function formatEventTime($time, $type, $locale = 'nb_NO') { setlocale(LC_TIME, $locale); switch($type) { case 'date' : $format = '%d.%m'; break; case 'dm' : $format = '%d. %B'; break; case 'time' : $format = '%H...
I need std::locale class, that defines ru_RU.CP1251 standart facets (ctype, collate, numeric, …). I feel sombody have released all main locales. Is there a libraries, or source files storage where I can download it and just include in my project like this, for example: #include <some_lib\ru_locale.hpp> // library #include <locale> #inc...
I have an application developted with Visual C++ 2008 Express Edition under Windwos XP, which runs propertly on one computer, where the default langaunge is set to English. However, if run the same application on a different computer with default language German, I run into troubles because a predefined string Infinity is not recoginzed ...
A Finnish customer tells me that the correct (locale aware) sorting for Finnish is: a-z, å, ä, ö. But QString::localeAwareCompare() returns it as: a, ä, å, b-o, ö, p-z in Qt 4.4.2 on Windows Vista. #include <qapplication.h> #include <qlocale.h> #include <iostream> #include <tchar.h> int main( int argc, char* argv[] ) { QLocale::se...
Im asking this because im trying to automatically change the locale language settings from a listpreference. And if i choose the language option in the listpreference window the preferenceActivity doesnt seem to go int the onPause method. I was wondering how could i imediately alter the language in this preferenceActivity, do i need to r...
Is there a C++ equivalent of mbsrtowcs and wcsrtombs type functions using std::locale and C++ streams functionality? I'm trying to figure out the best way to convert back and forth between std::string and std::wstring using the standard library. It seems std::locale can almost do this, but I'm a little iffy on some details, or on what l...
I have a bunch of costs in my XML that I am trying to compare against another cost value, to determine which values to display (only ones higher than the comparator). This works when the numbers use the decimal point as the separator but not with numbers using comma as the decimal separator. I could be getting either, depending on the ...
I have an ASP.Net webforms application that uses the .Net globalization features to deliver .aspx pages in different locales. I have custom errors defined as <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> I prefer using a non-.Net page for the defaultRedirect to prevent the potential for infinite loops, in case the err...
I have spend like one out in this example, and everytime I get the error Unable to read cin with an ios_base::iostate equal to failbit from this code: #include "dates.h" #include <iostream> #include <ctime> #include <locale> #include <sstream> #include <iterator> using namespace std; void trasnlateDate(istream&in, ostream&out){ c...
I have an application where the user can dynamically switch between locales from the welcome page of my application. I see that the earlier developer (inherited the code without much documentation) has overridden the following three methods from ViewHandler and tells me that this is required for dynamic switching of the Locale...any help...
Consider this somewhat of a follow up to this question. Essentially, the C++ date/time formatting facilities seem to be hopelessly broken - so much so that in order to do something as simple as convert a date/time string into an object, you really have to resort to either Boost.Datetime or good old C strftime/strptime facilities. The...
I was reading i18n chapter from java blueprint and I came across this "the system default locale for a Web component is the Web container's default locale" (@ http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/i18n/i18n4.html). I am wondering if there is anything like that. Also, I see that faces-config.xml p...
Recently I wrote a family of functions for trimming leading and trailing whitespace off of an input string. As the concept of "whitespace" is locale-dependent, I realized that I would need to either pass in a const std::ctype<char_t> reference or a const std::locale reference and call std::use_facet<std::ctype<char_t> > on the const std:...
Dear all, i just code a snippet code to get date time string as below: public static String getCurrentDate(){ Locale.setDefault(Locale.US); Date date = new Date(); String strDate = date.toString(); return strDate; } But problem is it take too long time (about 2 seconds) to convert from Date to string, Logs: 10-11 17:5...
In a template I display the day and month of a specific date : <div class="jour"><?php echo date('d',strtotime($content->getCreatedAt())) ?></div> <div class="mois"><?php echo date('M',strtotime($content->getCreatedAt())) ?></div> This works fine, problem is the month name is in English. Where do I specify that I want the month names ...
I'm running PHP 5.3.0, Apache 2.2.11 on Windows 7 and I tried to run this: setlocale(LC_ALL, 'sv_SE.UTF-8'); print_r(localeconv()); And got this: Array ( [decimal_point] => . [thousands_sep] => [int_curr_symbol] => [currency_symbol] => [mon_decimal_point] => [mon_thousands_sep] => [positive_sign] => ...
Hi all, I'm parsing an.ics file that includes time stamps of events like this: 20101008T230000Z This is, as far as I understand, expressed in UTC. Now, I want my app to display this time correctly, depending on the time zone where the iPhone user resides. So, as an example, if the user would be in London, the time would be displayed ...
Hi, the Android phones in Slovakia have a custom locale - en_SK and cs_SK. Language is either Czech or English, location is Slovakia. Now I would like to have strings that target these locales. The default approach is to create a folder "values-CountryCode", for Czech Republic it's values-cs. But I get a build error if I add a folder ...
std::stringstream stream_french; stream_french.imbue(std::locale("")); // French_France.1252 stream_french << 1000; std::string value_french = stream_french.str(); This code will convert 1000 to string "1 000" but the value of value_french[1] is -96 and not 32, why is that ? value_french[0] = 49 value_french[1] = -96 value_french[2] ...