Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BeYourMarket committed Jul 7, 2015
1 parent ba2a1d9 commit ad58466
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,13 @@ Keep track of development and community news.
## Translation ##
The platform is by designed with support of multiple language with i18n easily. Smart internationalization for ASP.NET based on GetText / PO ecosystem is used. The only thing you would need is to translate into your own language.

To localize text in your application, surround your strings with [[[ and ]]] markup characters to mark them as translatable.
[Translation Guide](https://beyourmarket.atlassian.net/wiki/display/BYM/Translation)

Here's an example of localizing text "Create an account" and "Log in" in a Razor view:

```html
<ul class="nav navbar-nav">
<li class="dropdown messages-menu hidden-xs">
@Html.ActionLink("[[[Create an account]]]", "Register", "Account", new { area = string.Empty }, htmlAttributes: new { id = "registerLink" })
</li>
<li class="dropdown messages-menu hidden-xs">
@Html.ActionLink("[[[Log in]]]", "Login", "Account", new { area = string.Empty }, htmlAttributes: new { id = "loginLink" })
</li>
</ul>
```

The template file is located at folder locale/messages.pot after the solution is built. The file can be translated with any POEditor.

When language specific po file is translate, it can be placed in your locale folder relative to the provided language, e.g. locale/fr. If you change a PO file on the fly, i18n will update accordingly; you do not need to restart your application.

The locale-specific file must be named messages.po. For example, your locale folder structure will be similar to (three languages, fr, es, and es-MX are defined):

locale/fr/messages.po

locale/es/messages.po
If you would like to contribute as a translator, please contact us at [[email protected]]([email protected])

locale/es-MX/messages.po
Credits to Contributors

If you would like to contribute as a translator, please contact us at [[email protected]]([email protected])
Danish: Kenneth Mundt

## Contribute to BeYourMarket ##

Expand Down

0 comments on commit ad58466

Please sign in to comment.