Limited translation options in czech language on Crowdin #1697

Closed
opened 2026-02-05 01:39:08 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @Venkinovec on GitHub (May 1, 2020).

Describe the bug
I cannot translate variable named 'x_chapter' located in 'entities.php'.
Hint tells me to use two OR cases ':count Chapter|:count Chapters'.
We have 4 cases of using word 'chapter' in 3 different writtings and one writting is used in two cases.

Steps To Reproduce
Look for more in issues at Crowdin.

Expected behavior
Should be able to translate it completely.

Screenshots
image

Your Configuration (please complete the following information):
BookStack v0.29.1

Originally created by @Venkinovec on GitHub (May 1, 2020). **Describe the bug** I cannot translate variable named 'x_chapter' located in 'entities.php'. Hint tells me to use two OR cases ':count Chapter|:count Chapters'. We have 4 cases of using word 'chapter' in 3 different writtings and one writting is used in two cases. **Steps To Reproduce** Look for more in issues at [Crowdin](https://crowdin.com/translate/bookstack/46/en-cs). **Expected behavior** Should be able to translate it completely. **Screenshots** ![image](https://user-images.githubusercontent.com/25304952/80835366-e5161e80-8bf2-11ea-8c8d-c2a2ef306257.png) **Your Configuration (please complete the following information):** BookStack v0.29.1
Author
Owner

@mahdi1234 commented on GitHub (May 1, 2020):

How about reverse it

kapitol :count

or

počet kapitol :count

seems legit to me (if it's possible to do it like this).

@mahdi1234 commented on GitHub (May 1, 2020): How about reverse it > kapitol :count or > počet kapitol :count seems legit to me (if it's possible to do it like this).
Author
Owner

@ssddanbrown commented on GitHub (May 2, 2020):

Hi @Venkinovec,
BookStack uses Laravel's translation system, pluralisation cases can follow the formats defined here:
https://laravel.com/docs/6.x/localization#pluralization

Therefore the format in the following example can be used:

'apples' => '{0} There are none|{1} There is one|[2,*] There are :count',
@ssddanbrown commented on GitHub (May 2, 2020): Hi @Venkinovec, BookStack uses Laravel's translation system, pluralisation cases can follow the formats defined here: https://laravel.com/docs/6.x/localization#pluralization Therefore the format in the following example can be used: ```php 'apples' => '{0} There are none|{1} There is one|[2,*] There are :count', ```
Author
Owner

@Venkinovec commented on GitHub (May 2, 2020):

Hmmm, I didn't think about this one.

počet kapitol

If I change other counters to "počet" then it will look naturally.
Thank you for this advise.

@Venkinovec commented on GitHub (May 2, 2020): Hmmm, I didn't think about this one. > počet kapitol If I change other counters to "počet" then it will look naturally. Thank you for this advise.
Author
Owner

@Venkinovec commented on GitHub (May 2, 2020):

Hi @Venkinovec,
BookStack uses Laravel's translation system, pluralisation cases can follow the formats defined here:
https://laravel.com/docs/6.x/localization#pluralization

Therefore the format in the following example can be used:

'apples' => '{0} There are none|{1} There is one|[2,*] There are :count',

Wow, I will use the system then.
Thank you @ssddanbrown

@Venkinovec commented on GitHub (May 2, 2020): > Hi @Venkinovec, > BookStack uses Laravel's translation system, pluralisation cases can follow the formats defined here: > https://laravel.com/docs/6.x/localization#pluralization > > Therefore the format in the following example can be used: > > ``` > 'apples' => '{0} There are none|{1} There is one|[2,*] There are :count', > ``` Wow, I will use the system then. Thank you @ssddanbrown
Author
Owner

@Venkinovec commented on GitHub (May 2, 2020):

I'll study Laravel's localization a bit, since I plan to complete czech translation.

@Venkinovec commented on GitHub (May 2, 2020): I'll study Laravel's localization a bit, since I plan to complete czech translation.
Author
Owner

@Venkinovec commented on GitHub (May 2, 2020):

I forgot (since I was focused on one problem).
Is there a way to modify recent activies to the point where I can change the structure of sentence completely (change position of username in text) ?I would like to have something like:

page :page created/edited/deleted by user :username

Otherwise I would have to recognize gender.
On Crowdin I saw in other languages modifications only to the grey part of the text.
image

@Venkinovec commented on GitHub (May 2, 2020): I forgot (since I was focused on one problem). Is there a way to modify recent activies to the point where I can change the structure of sentence completely (change position of username in text) ?I would like to have something like: >page :page created/edited/deleted by user :username Otherwise I would have to recognize gender. On Crowdin I saw in other languages modifications only to the grey part of the text. ![image](https://user-images.githubusercontent.com/25304952/80849250-b01bc300-8c16-11ea-9929-9c67b9c4c684.png)
Author
Owner

@ssddanbrown commented on GitHub (May 2, 2020):

@Venkinovec Unfortunately not, at least not quickly & easily. Since the user and asset components are linked, and therefore within different HTML elements, it make it tricky to have in a single string, at least while ensuring content remains escaped and secure.

@ssddanbrown commented on GitHub (May 2, 2020): @Venkinovec Unfortunately not, at least not quickly & easily. Since the user and asset components are linked, and therefore within different HTML elements, it make it tricky to have in a single string, at least while ensuring content remains escaped and secure.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1697