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
3f5e6e9b
Commit
3f5e6e9b
authored
Jun 10, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure guide PDF compiles with russian characters
parent
c8b75c6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
images
docs/guide-ru/images
+2
-0
tutorial-i18n.md
docs/guide/tutorial-i18n.md
+4
-2
GuideRenderer.php
extensions/apidoc/templates/pdf/GuideRenderer.php
+0
-3
main.tex
extensions/apidoc/templates/pdf/main.tex
+2
-1
No files found.
docs/guide-ru/images
0 → 120000
View file @
3f5e6e9b
../guide/images/
\ No newline at end of file
docs/guide/tutorial-i18n.md
View file @
3f5e6e9b
...
...
@@ -29,7 +29,9 @@ Target language is what's currently used. It's defined in application configurat
return
[
'id'
=>
'applicationID'
,
'basePath'
=>
dirname
(
__DIR__
),
'language'
=>
'ru-RU'
// ← here!
'language'
=>
'ru-RU'
// <- here!
// ...
]
```
Later you can easily change it in runtime:
...
...
@@ -45,7 +47,7 @@ Format is `ll-CC` where `ll` is two- or three-letter lowercase code for a langu
If there's no translation for
`ru-RU`
Yii will try
`ru`
as well before failing.
> **Note**: you can further customize details specifying language
> [as documented in ICU project](http://userguide.icu-project.org/locale#TOC-The-Locale-Concept).
> [as documented in
the
ICU project](http://userguide.icu-project.org/locale#TOC-The-Locale-Concept).
Message translation
-------------------
...
...
extensions/apidoc/templates/pdf/GuideRenderer.php
View file @
3f5e6e9b
...
...
@@ -44,9 +44,6 @@ class GuideRenderer extends \yii\apidoc\templates\html\GuideRenderer
$fileData
=
[];
$chapters
=
$this
->
loadGuideStructure
(
$files
);
foreach
(
$files
as
$file
)
{
if
(
basename
(
$file
)
==
'tutorial-i18n.md'
)
{
continue
;
// TODO avoid i18n tut because of non displayable characters right now. need to fix it.
}
$fileData
[
basename
(
$file
)]
=
file_get_contents
(
$file
);
// if (preg_match("/^(.*)\n=+/", $fileData[$file], $matches)) {
// $headlines[$file] = $matches[1];
...
...
extensions/apidoc/templates/pdf/main.tex
View file @
3f5e6e9b
\documentclass
[a4paper,11pt,twoside]
{
book
}
% english and utf8
%\usepackage[T1
]{fontenc}
\usepackage
[T2A
]
{
fontenc
}
\usepackage
[utf8]
{
inputenc
}
%\usepackage[british,russian]{babel}
\usepackage
[british]
{
babel
}
...
...
@@ -56,6 +56,7 @@
literate=
{
-
}{
-
}
1,
% {\'}{'}1,
% {\"}{\"}1
extendedchars=false
}
\lstdefinelanguage
{
json
}{
...
...
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