Skip to content

Commit

Permalink
Add files with confirmed structure that represent expressions and tra…
Browse files Browse the repository at this point in the history
…nslatable key-value pairs
  • Loading branch information
tomkowz committed Jul 18, 2015
1 parent 103dd24 commit 6629288
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
38 changes: 38 additions & 0 deletions example/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
Displayed at welcome screen
*/
"welcome": "welcome"

/*
Displays string with number of cars
1 car or X cars
*/
"cars" {
"one": "1 car"
"more": "%d cars"
}

/*
Forgot password sentence displayed on login form
*/
"forgot-password" {
@100: "Forgot Password? Help."
@200: "Forgot Password? Get password Help."
@300: "Forgotten Your Password? Get password Help."
}

/*
Sentence about cars
*/
"car-sentence" {
"one" {
@100: "one car"
@200: "just one car"
@300: "you've got just one car"
}

"more" {
@100: "%d cars"
@300: "you've got %d cars"
}
}
9 changes: 9 additions & 0 deletions example/expressions
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"base" {
"one": "ie:x=1"
"two": "ie:x=2"
"more": "exp:(^[^1])|(^\\d{2,})"
}

"pl" {
"few": "exp:(((?!1).[2-4]{1})$)|(^[2-4]$)"
}
38 changes: 38 additions & 0 deletions example/pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
Displayed at welcome screen
*/
"welcome": "witaj"

/*
Displays string with number of cars
1 car or X cars
*/
"cars" {
"one": "1 samochód"
"more": "%d samochodów (simple)"
}

/*
Forgot password sentence displayed on login form
*/
"forgot-password" {
@100: "Zapomniałeś hasła? Pomoc."
@200: "Zapomniałeś hasła? Skorzystaj z Pomocy."
@300: "Zapomniałeś swojego hasła? Skorzystaj z Pomocy."
}

/*
Sentence about cars
*/
"car-sentence" {
"one" {
@100: "jeden samochód"
@200: "tylko jeden samochód"
@300: "posiadasz tylko jeden samochód"
}

"more" {
@100: "%d samochodów (simple)"
@300: "masz %d samochodów (simple)"
}
}

0 comments on commit 6629288

Please sign in to comment.