Skip to content

Translation namespace

priit edited this page Sep 14, 2010 · 19 revisions

The basic namespace rule is:

<language>.adva.<engine>.<model>.<key>

We’ve decided to simplify, and make all namespaces singular.
Use engine name without “adva-” prefix.

Contexts

If there is potential conflict under the model, we can include a context before the key:

<language>.adva.<engine>.<model>.<context>.<key>

  • common
  • exception
  • flash
  • model
  • notification
  • title
  • validation
  • view

Restful controllers

--- 
en:
  adva:
    blog: 
      article: 
        flash: 
          rollback: 
            success: The article has been rolled back to revision {{version}}
            failure: The article could not be rolled back to revision {{version}}
          destroy: 
            success: The article has been deleted.
            failure: The article could not be deleted.
          create: 
            success: The article has been created.
            failure: The article could not be created.
          update: 
            success: The article has been updated
            failure: The article could not be updated

Dates

We are going to take the opportunity to update dates all at the same time as a way of ensuring consistent date formatting throughout the app and across engines. for now, let’s note the locations of dates as we work through the locales and then we can revisit them all at once.

  • engines/adva_wiki/app/views/admin/wikipages/_wikipage.html.erb:4