Skip to content

Commit 8ce4df1

Browse files
committed
Initial commit
0 parents  commit 8ce4df1

21 files changed

+1088
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/tests/test_config.php

.travis.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: php
2+
php:
3+
- 5.3.3
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
8+
env:
9+
- DB=mysql
10+
- DB=postgres
11+
12+
before_script:
13+
# checkout phpBB and move your extension in place
14+
- cd ../../
15+
- git clone "git://github.com/phpbb/phpbb3.git" "phpBB3"
16+
- mkdir phpBB3/phpBB/ext
17+
- mkdir phpBB3/phpBB/ext/official
18+
- mv nickvergessen/phpbb3-translation-validator phpBB3/phpBB/ext/official/translationvalidator
19+
20+
# Setup the dependencies
21+
- cd phpBB3/phpBB
22+
- php ../composer.phar install --dev --no-interaction --prefer-source
23+
24+
# Setup the tests/travis
25+
- cd ext/official/translationvalidator
26+
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
27+
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
28+
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
29+
- travis/install-php-extensions.sh
30+
- phpenv rehash
31+
- sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"
32+
33+
script:
34+
- ../../../vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
35+
36+
notifications:
37+
email:
38+
recipients:
39+
40+
on_success: change
41+
on_failure: change

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# phpBB Translation Validator Extension
2+
3+
## Requirement
4+
5+
This extension requires phpBB 3.1 to be installed.
6+
7+
## Installation
8+
9+
Clone into phpBB/ext/official/translationvalidator:
10+
11+
git clone https://github.com/nickvergessen/phpbb3-translation-validator.git phpBB/ext/official/translationvalidator
12+
13+
Add to database by inserting a row into phpbb_ext
14+
15+
INSERT INTO phpbb_ext (ext_name, ext_active, ext_state) VALUES ('official/translationvalidator', 0, '');
16+
17+
Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB Translation Validator" extension.
18+
19+
##Tests and Continuous Intergration
20+
21+
[![Build Status](https://travis-ci.org/nickvergessen/phpbb3-translation-validator.png?branch=master)](https://travis-ci.org/nickvergessen/phpbb3-translation-validator)
22+
23+
We use Travis-CI as a continous intergtation server and phpunit for our unit testing. See more information on the [phpBB development wiki](https://wiki.phpbb.com/Unit_Tests).
24+
25+
## License
26+
27+
[GPLv2](license.txt)

composer.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "official/translationvalidator",
3+
"type": "phpbb3-extension",
4+
"description": "Validates files of translations to the english default package",
5+
"homepage": "https://github.com/nickvergessen/phpbb3-translation-validator",
6+
"version": "1.1.0",
7+
"time": "2013-08-05 01:01:01",
8+
"licence": "GPL-2.0",
9+
"authors": [
10+
{
11+
"name": "Joas Schilling",
12+
"username": "nickvergessen",
13+
"email": "[email protected]",
14+
"homepage": "http://www.phpbb.com/",
15+
"role": "Translations Manager"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.3",
20+
"phpbb": ">=3.1.0-dev"
21+
},
22+
"extra": {
23+
"display-name": "phpBB Translation Validator"
24+
}
25+
}

ext.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
/**
3+
*
4+
* @package phpBB Translation Validator
5+
* @copyright (c) 2013 phpBB Group
6+
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7+
*
8+
*/
9+
10+
/**
11+
* @ignore
12+
*/
13+
if (!defined('IN_PHPBB'))
14+
{
15+
exit;
16+
}
17+
18+
class phpbb_ext_official_translationvalidator_ext extends phpbb_extension_base
19+
{
20+
}

0 commit comments

Comments
 (0)