mercredi 1 juillet 2015

Pluralize method for different language in Ruby on Rails

I am using pluralize method in HTML files to dynamic value which user can set as per their locale.

i.e. so If user set label deaprtment with the german word "Abteilung", it will append 's' as per current Rails Inflection rules for pluralize string. So word will be "Abteilungs" , but their is no suchword in German.

I researched , but there is no such inflection rules specific to language. There may b many such word in many languages so i can't make custom inflection rules. I am not using I18n or tr8n for internationalizing such words. can someone suggest , what can i do to resolve this.

Aucun commentaire:

Enregistrer un commentaire