forked from beyourmarket/beyourmarket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BeYourMarket
committed
Jul 7, 2015
1 parent
ba2a1d9
commit ad58466
Showing
1 changed file
with
4 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ## | ||
|
||
|