Translations are not respect new lines properly #2435

Closed
opened 2019-02-08 19:52:27 +01:00 by PredaaA · 3 comments
PredaaA commented 2019-02-08 19:52:27 +01:00 (Migrated from github.com)

Other bugs

What were you trying to do?

When translating a cogs .po file to use in another language, new lines are not respected properly.
See images below.

What were you expecting to happen?

I want to have the same line formatting that are on this image when translating a cog.
2019-02-08 16_58_19-window

What actually happened?

With just one \n in fields in the .po file there's not line break
2019-02-08 16_58_09-window

Then with two \n in fields in the .po file it works but add a second line break that it's unwanted.
2019-02-08 18_36_55-window

And there's the a screenshot of the .po translation file and link of the po file for this part
2019-02-08 17_01_19-window

# Other bugs ### What were you trying to do? When translating a cogs `.po` file to use in another language, new lines are not respected properly. See images below. ### What were you expecting to happen? I want to have the same line formatting that are on this image when translating a cog. ![2019-02-08 16_58_19-window](https://user-images.githubusercontent.com/46051820/52497804-4d847480-2bd7-11e9-9162-03a0c6f7e3bd.png) ### What actually happened? With just one `\n` in fields in the `.po` file there's not line break ![2019-02-08 16_58_09-window](https://user-images.githubusercontent.com/46051820/52497928-aa802a80-2bd7-11e9-91ec-d7db9b09ccb2.png) Then with two `\n` in fields in the `.po` file it works but add a second line break that it's unwanted. ![2019-02-08 18_36_55-window](https://user-images.githubusercontent.com/46051820/52498027-ec10d580-2bd7-11e9-8534-9d06c045b69c.png) And there's the a screenshot of the `.po` translation file and [link of the po file](https://hastebin.com/okaroyamiz.nginx) for this part ![2019-02-08 17_01_19-window](https://user-images.githubusercontent.com/46051820/52498715-d3092400-2bd9-11e9-8180-7d445534517b.png)
entchen66 commented 2019-02-11 23:04:58 +01:00 (Migrated from github.com)

The same problem I have noticed in the repo list and in the cog list:
grafik
grafik

The same problem I have noticed in the repo list and in the cog list: ![grafik](https://user-images.githubusercontent.com/1564726/52596763-68621d80-2e51-11e9-8a52-fdd69b531ca0.png) ![grafik](https://user-images.githubusercontent.com/1564726/52596778-731cb280-2e51-11e9-987e-f2e115712199.png)
Fozar commented 2019-02-13 16:05:40 +01:00 (Migrated from github.com)
[Same problem](https://github.com/Cog-Creators/Red-DiscordBot/issues/2408)
Tobotimus commented 2019-02-19 22:28:28 +01:00 (Migrated from github.com)

I'm gonna mark this as a duplicate of #2408, and use that to track this general issue with translations not being loaded or rendered properly.

I'm gonna mark this as a duplicate of #2408, and use that to track this general issue with translations not being loaded or rendered properly.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#2435
No description provided.