-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from sarelvdwalt/master
Addition of Afrikaans (af) language translation (with spec tests)
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#A quick guide to contribute to the project: | ||
|
||
##Installing the dev environment | ||
|
||
1. Fork the repo | ||
2. Clone the repo to local | ||
3. Install dependencies: `composer install` (this assumes you have 'composer' aliased to whereever your composer.phar lives) | ||
4. Run the tests. We only take pull requests with passing tests, and it's great to know that you have a clean slate: | ||
`./bin/phpspec run --format=pretty` | ||
|
||
##The actual contribution | ||
|
||
1. Make the changes/additions to the code, committing often and making clear what you've done | ||
2. Make sure you write tests for your code, located in the folder structure `spec/Coduo/PHPHumanizer/...` | ||
3. Run your tests (often and while coding): `./bin/phpspec run --format=pretty` | ||
|
||
##Coding Standards | ||
|
||
Try use similar coding standards to what you see in the project to keep things clear to the contributors. If you're unsure, it's always a safe bet to fall-back to the PSR standards. | ||
|
||
[PSR-1: Basic Coding Standard](http://www.php-fig.org/psr/psr-1/) | ||
|
||
[PSR-2: Coding Style Guide](http://www.php-fig.org/psr/psr-2/) |
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
35 changes: 35 additions & 0 deletions
35
src/Coduo/PHPHumanizer/Resources/translations/difference.af.yml
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
just_now: | ||
past: "[0,Inf] nou nou" | ||
future: "[0,Inf] netnou" | ||
second: | ||
past: "{1} %count% sekonde gelede|[2,Inf] %count% sekondes gelede" | ||
future: "{1} %count% sekonde van nou af|[2,Inf] %count% sekondes van nou af" | ||
minute: | ||
past: "{1} %count% minuut gelede|[2,Inf] %count% minute gelede" | ||
future: "{1} %count% minuut van nou af|[2,Inf] %count% minute van nou af" | ||
hour: | ||
past: "{1} %count% uur gelede|[2,Inf] %count% ure gelede" | ||
future: "{1} %count% uur van nou af|[2,Inf] %count% ure van nou af" | ||
day: | ||
past: "{1} %count% dag gelede|[2,Inf] %count% dae gelede" | ||
future: "{1} %count% dag van nou af|[2,Inf] %count% dae van nou af" | ||
week: | ||
past: "{1} %count% week gelede|[2,Inf] %count% weke gelede" | ||
future: "{1} %count% week van nou af|[2,Inf] %count% weke van nou af" | ||
month: | ||
past: "{1} %count% maand gelede|[2,Inf] %count% maande gelede" | ||
future: "{1} %count% maand van nou af|[2,Inf] %count% maande van nou af" | ||
year: | ||
past: "{1} %count% jaar gelede|[2,Inf] %count% jaar gelede" | ||
future: "{1} %count% jaar van nou af|[2,Inf] %count% jaar van nou af" | ||
|
||
compound: | ||
second: "{1} %count% sekonde|[2,Inf] %count% sekondes" | ||
minute: "{1} %count% minuut|[2,Inf] %count% minute" | ||
hour: "{1} %count% uur|[2,Inf] %count% ure" | ||
day: "{1} %count% dag|[2,Inf] %count% dae" | ||
week: "{1} %count% week|[2,Inf] %count% weke" | ||
month: "{1} %count% maand|[2,Inf] %count% maande" | ||
year: "{1} %count% jaar|[2,Inf] %count% jaar" | ||
ago: "gelede" | ||
from_now: "van nou af" |