Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e65eeabe
Commit
e65eeabe
authored
Jun 11, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed translation tool and docs
parent
98a4be27
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
TranslationController.php
build/controllers/TranslationController.php
+2
-2
report_html.php
build/controllers/views/translation/report_html.php
+1
-1
translations.md
docs/internals-ru/translations.md
+1
-1
translations.md
docs/internals/translations.md
+1
-1
No files found.
build/controllers/TranslationController.php
View file @
e65eeabe
...
...
@@ -15,7 +15,7 @@ use yii\helpers\Html;
/**
* TranslationController handles tasks related to framework translations.
*
* build translation
../docs/guide" "../docs/guide_ru" --title=
"Russian guide translation report" > report_guide_ru.html
* build translation
"../docs/guide" "../docs/guide_ru"
"Russian guide translation report" > report_guide_ru.html
*
* @author Alexander Makarov <sam@rmcreative.ru>
*/
...
...
@@ -122,7 +122,7 @@ class TranslationController extends Controller
* @param string $diff DIFF
* @return string highlighted DIFF
*/
p
rotected
function
highlightDiff
(
$diff
)
p
ublic
function
highlightDiff
(
$diff
)
{
$lines
=
explode
(
"
\n
"
,
$diff
);
foreach
(
$lines
as
$key
=>
$val
)
{
...
...
build/controllers/views/translation/report_html.php
View file @
e65eeabe
...
...
@@ -40,7 +40,7 @@ use yii\helpers\Html;
<
p
><?
php
echo
Html
::
encode
(
$error
)
?>
</p>
<?php
endforeach
?>
<?php
if
(
!
empty
(
$result
[
'diff'
]))
:?>
<
code
class
="
diff
"><pre><?php echo
$this->highlightDiff
(
$result['diff']
)?></pre></code>
<
code
class
="
diff
"><pre><?php echo
$this->
context
->
highlightDiff(
$result['diff']
)?></pre></code>
<?php endif?>
<?php endforeach ?>
</body>
...
...
docs/internals-ru/translations.md
View file @
e65eeabe
...
...
@@ -30,7 +30,7 @@ Yii переводится на множество языков, в том чи
в директории
`build`
и выполнив:
```
build translation
../docs/guide" "../docs/guide-ru" --title="Russian guide translation report" > report-guide-
ru.html
build translation
"../docs/guide" "../docs/guide_ru" "Russian guide translation report" > report_guide_
ru.html
```
Перед тем, как начать перевод, убедитесь, что никто им ещё не занимается и запишите себя в
...
...
docs/internals/translations.md
View file @
e65eeabe
...
...
@@ -39,5 +39,5 @@ After initial work is done you can get what's changed since last translation of
`build`
directory:
```
build translation
../docs/guide" "../docs/guide-ru" --title="Russian guide translation report" > report-guide-
ru.html
build translation
"../docs/guide" "../docs/guide_ru" "Russian guide translation report" > report_guide_
ru.html
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment