Skip to content

Instantly share code, notes, and snippets.

@PhilippePerret
Created January 5, 2012 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilippePerret/1566235 to your computer and use it in GitHub Desktop.
Save PhilippePerret/1566235 to your computer and use it in GitHub Desktop.
locales/generales/fr.yml
fr:
# Pour utiliser la méthode 'formate_date' de l'helper Temps du fichier :
# https://gist.github.com/1566244
date:
abbr_day_names: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"]
abbr_month_names: ["~", "jan", "fév", "mar", "avr", "mai", "jui", "juil", "août", "sept", "oct", "nov", "déc"]
day_names: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"]
month_names: ["~", "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"]
time:
formats:
court: "%d %m %Y"
court_avec_heure: "%d %m %Y - %H:%M"
humain: "%d %B %Y"
humain_court: "%d %b %Y"
@PhilippePerret
Copy link
Author

On peut bien sûr faire le même fichier 'en.yml' ou 'de.yml' dans toutes les langues avec les valeurs désirées. (supprimer simplement les lignes date: pour le fichier en anglais.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment