Data dodania Pytanie
2017-01-11 20:01 How to get a database entry with a specific language »
Using I18n for Ruby on Rails 4.0.0 I need a database entry for English, even though I'm currently in local => "de". The code is = link_to tag.name, :...
(1) odpowiedzi
2017-01-04 17:01 How to remove or edit the pluralization for comments and likes in rails »
I am new to rails, and i am working on a rtl website! I am trying to fix the pluralization in comment.count and get_upvotes.size to be replaced by the...
(1) odpowiedzi
2016-12-11 17:12 Sinatra I18n Fallbacks using Rack::Locale »
I'm trying to set up a simple Sinatra app with I18n, following the recommended Sinatra recipe, and using Rack:Locale to determine the language. My ap...
(1) odpowiedzi
2016-11-30 13:11 rails 4 simple form association translation lookup (i18n) »
here's something that has annoyed me for some time, and I couldn't find a solution yet. Suppose I have a form with f.association :driver ,then ...
(0) odpowiedzi
2016-11-17 02:11 I18n clicking navbar link defaults back to English »
I'm following the railscast guide but for some reason, when I click on a link, the params locale is not being carried over. Here's my routes.db Rail...
(1) odpowiedzi
2016-10-22 19:10 angularjs translate dropdown list from i18n using ng-repeat »
My English language i18n translation json file assets/i18n/en.json is like the following (this is the english translation, I have several other files ...
(1) odpowiedzi
2016-10-19 15:10 Java: Send email to a Non-ASCII email address »
I want to send an email to a Non-ASCII email address and I am not sure what is the recommended procedure using JDK8. How should I deal with the follo...
(3) odpowiedzi
2016-09-19 18:09 How to maintain different country versions of same language in Django? »
I would like to have a few different versions of the same language in Django, customized for different countries (e.g. locale/en, locale/en_CA, locale...
(1) odpowiedzi
2016-09-14 23:09 Get current devise user in extended classes in rspec support file »
in my rails app I use devise for user authentication. I also use i18n for the whole website and each user has the possibility to choose her or his spe...
(0) odpowiedzi
2016-09-03 14:09 Translation of model properties »
I am developing an MVC framework (please don't question that, I know..) and currently designing a translation mechanism to maximally ease translation ...
(1) odpowiedzi
2016-08-27 16:08 Remove <a> tag from rails "link_to" methdo »
I need to remove <a> tag from rails link_to method. Here is current code and result: <%= link_to "ESP", :locale=>'es'%> <a href="/e...
(1) odpowiedzi
2016-08-25 18:08 toUpperCase on Android is incorrect for two-argument and default Greek and Turkish Locales »
I am having trouble with Greek and Turkish when using toUpperCase() with the default locale or more interestingly the two argument Locale constructor....
(1) odpowiedzi
2016-08-02 20:08 Is there a way to interpolate attribute values out of the box with i18n and Rails 4? »
I'm trying to present better validation error messages to users. For example, a given uniqueness validation message says something along the lines of:...
(1) odpowiedzi
2016-07-28 17:07 Coldfusion: reading ñ with cfspreadsheet action="read" »
I am reading an excel file using: <cfspreadsheet action="read" src="#theFile#" query="data" headerrow="1"> However, when d...
(0) odpowiedzi
2016-06-25 20:06 Dynamically loading I18n translations from gem into Rails Engine »
I've created a gem (TranslationsGem) which I use in multiple projects (an engine and a Rails app). This gem sets up several hashes which are loaded in...
(0) odpowiedzi
2016-06-25 17:06 How to get localized day-names in django? »
When using djangos (or better gettext's) localization mechanism, it's hard to get the current locale's day names. Usually, i would use calendar: cale...
(1) odpowiedzi
2016-05-20 14:05 How do I translate my hard-coded strings in swift 2.0? »
Despite all the info available on the web, I am still struggling to translate my hard-coded strings in Swift (target language: French) - How do I go a...
(2) odpowiedzi
2016-03-01 13:03 Rails 3.2: ActiveRecord model without i18n_key - how could it possible and how to fix? »
Models example: class ModelOne < ActiveRecord::Base ... end class ModelTwo < ActiveRecord::Base ... end From rails console: [1] pry(main)&g...
(1) odpowiedzi
2016-02-25 12:02 How to get the locale in the i18n file? »
In my Sinatra-based project I have a login route: # route to receive login form: sorry or logs in with cookie. sends home. post '/login' do redir...
(1) odpowiedzi
2016-02-16 13:02 Multi language database encoding in search engine »
I have a database(Mysql) in which I store more then 100 000 keywords with keyword in different languages. So an example if I have three colums [id] [t...
(1) odpowiedzi
2016-02-05 06:02 How to properly internationalize a Sinatra page? »
I have a Sinatra route file, which displays some page. <h2>Free, open song contest</h2> <h3>Sign up</h3> <form action="/si...
(1) odpowiedzi
2016-01-12 13:01 where to translate form field labels in django »
I am working on getting my site translations up to speed and I have got .po/.mo files working with all of my {% trans %} tags in my template, but I ca...
(1) odpowiedzi
2015-12-28 14:12 Rails I18n full error messages in RSpec Capybara feature tests »
I want to apply validation checks to my feature tests like: click_button 'Submit' expect(page).to have_content "Question can't be blank" I'm using...
(0) odpowiedzi
2015-11-12 10:11 How to integrate the language in the URL in Sinatra »
I have an application with many languages and now I want to integrate in the URL the language. Something like this: https://example.com/en/main/cars h...
(0) odpowiedzi
2015-11-01 09:11 How to show Datatable buttons with language file included? »
this should be basic datatable setup with buttons, i'm using it with bootstrap so as suggested i did: var tab= $('#table').DataTable({ button...
(1) odpowiedzi
2015-10-29 13:10 React and Multilingual (Internationalization) Apps - Architecture »
I'm building an app that will need to be available in multiple languages and locales. My question is not purely technical, but rather about the archi...
(1) odpowiedzi
2015-10-28 10:10 I18n in Rails for filter »
I have a problem I am unable to solve with internationalization in Rails. I am completely newbie in Rails. I have a collection of categories defined ...
(1) odpowiedzi
2015-10-16 13:10 Why Django translation does not use the base language in javascript? »
I work on a Django project where the default language is french. I also want to support english. The internationalisation works as I expected in pyth...
(1) odpowiedzi
2015-09-28 21:09 Placeholder i18next translation not working »
I have created a registration form. I am using i18next server side. This is my server-side configuration: var i18n = require('i18next'); i18n.init({...
(1) odpowiedzi