Skip to content

Fix: 'Week' and 'Sunday' problem in ID locale#399

Closed
feryandi wants to merge 2 commits intoscrapinghub:masterfrom
feryandi:hotfix-id-sunday
Closed

Fix: 'Week' and 'Sunday' problem in ID locale#399
feryandi wants to merge 2 commits intoscrapinghub:masterfrom
feryandi:hotfix-id-sunday

Conversation

@feryandi
Copy link
Copy Markdown

@feryandi feryandi commented Mar 18, 2018

Add new rule for 'week' and remove existing 'week' translation from Indonesia (id)
This should fix #398

Translation removed:

  • week: minggu
    reason: in Indonesia language, minggu as standalone word is more likely to be translated into sunday

Rule added:

  • \1 week ago: (\d+) minggu lalu
  • \1 week: (\d+) minggu
    reason: to mitigate the missing translation of week, I've hard-coded the most probable sentence which the word minggu translated as week

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2018

Codecov Report

Merging #399 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #399   +/-   ##
=======================================
  Coverage   94.95%   94.95%           
=======================================
  Files         302      302           
  Lines        2436     2436           
=======================================
  Hits         2313     2313           
  Misses        123      123
Impacted Files Coverage Δ
dateparser/data/date_translation_data/id.py 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb9614a...55ceeb1. Read the comment docs.

@Gallaecio
Copy link
Copy Markdown
Contributor

I see a problem with these changes: you are editing a JSON file that comes from Unicode CLDR data (see https://dateparser.readthedocs.io/en/latest/contributing.html#guidelines-for-editing-translation-data). Those files are not meant to be modified manually, only updated from Unicode CLDR data.

@noviluni noviluni added the language language related issue/PR label Apr 30, 2020
serhii73 added a commit that referenced this pull request Jan 27, 2023
@serhii73 serhii73 mentioned this pull request Jan 27, 2023
@serhii73 serhii73 self-assigned this Jan 27, 2023
serhii73 added a commit that referenced this pull request Jan 27, 2023
@serhii73 serhii73 mentioned this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language language related issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem in Bahasa Indonesia (ID)

5 participants