Skip to content

fix: correct spelling errors in Austrian and Romanian modules#118

Merged
atoomic merged 1 commit into
cpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-language-spelling-errors
Apr 26, 2026
Merged

fix: correct spelling errors in Austrian and Romanian modules#118
atoomic merged 1 commit into
cpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-language-spelling-errors

Conversation

@Koan-Bot
Copy link
Copy Markdown

What

Fixes incorrect month names in Date::Language::Austrian and Date::Language::Romanian.

Why

  • Austrian abbreviated October as "Oct" (English) instead of "Okt" (German convention). Every other abbreviation in the module correctly uses German forms.
  • Romanian misspelled November as "noembrie" instead of the correct "noiembrie".
  • Romanian's file header still said "Italian tables" from when it was copy-pasted from Italian.pm.

How

Minimal data corrections — one character each for Austrian and Romanian. Added targeted regression tests in lang-data.t.

Testing

prove -l t/ — all tests pass.

🤖 Generated with Claude Code

Austrian: October abbreviation was "Oct" (English) instead of "Okt"
(German). All other abbreviations used the correct German forms.

Romanian: November was misspelled as "noembrie" instead of "noiembrie".
Also fixed the file header comment which said "Italian tables" (copy-paste
artifact from Italian.pm).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
our @MoY = qw(Jänner Feber März April Mai Juni
Juli August September Oktober November Dezember);
our @MoYs = qw(Jän Feb Mär Apr Mai Jun Jul Aug Sep Oct Nov Dez);
our @MoYs = qw(Jän Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks correct

my %months_de_at = (
  October => {
    full => "Oktober",
    abbr => "Okt.",
  },

);


@MoY = qw(ianuarie februarie martie aprilie mai iunie
iulie august septembrie octombrie noembrie decembrie);
iulie august septembrie octombrie noiembrie decembrie);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks correct too

my %en_to_ro = (
  November => "noiembrie",
);

@atoomic atoomic marked this pull request as ready for review April 26, 2026 12:43
@atoomic atoomic merged commit 9b422df into cpan-authors:main Apr 26, 2026
22 checks passed
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 26, 2026

Greptile Summary

This PR makes three minimal, targeted data corrections: the Austrian October abbreviation is fixed from "Oct" (English) to "Okt" (German), Romanian November is corrected from "noembrie" to "noiembrie", and a stale copy-paste header comment in Romanian.pm is updated from "Italian tables" to "Romanian tables". Targeted regression tests are added to t/lang-data.t to prevent reintroduction of both bugs.

Confidence Score: 5/5

Safe to merge — all changes are one-character data corrections backed by regression tests, with no logic changes.

All three fixes are straightforward and correct. The only finding is a P2 wrong date string in a test comment; the test itself functions correctly and the data fixes are accurate.

No files require special attention; the minor comment inaccuracy in t/lang-data.t is cosmetic only.

Important Files Changed

Filename Overview
lib/Date/Language/Austrian.pm Corrects October abbreviation in @moys from "Oct" (English) to "Okt" (German), consistent with all other German-form abbreviations in the array.
lib/Date/Language/Romanian.pm Fixes two copy-paste artifacts: stale "Italian tables" header comment updated to "Romanian tables", and November spelling corrected from "noembrie" to "noiembrie".
t/lang-data.t Adds two regression tests for the fixes; test logic is correct but the comment for oct_time incorrectly states "Thu Oct 14" when the timestamp is actually Wed Oct 13 1999 UTC.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["time2str('%b', $oct_time)"] --> B["Austrian::format_b"]
    B --> C["@MoYs[ mon ]"]
    C -->|"mon=9 (October)"| D["Before: 'Oct' ❌"]
    C -->|"mon=9 (October)"| E["After: 'Okt' ✅"]

    F["time2str('%B', $nov_time)"] --> G["Romanian::format_B"]
    G --> H["@MoY[ mon ]"]
    H -->|"mon=10 (November)"| I["Before: 'noembrie' ❌"]
    H -->|"mon=10 (November)"| J["After: 'noiembrie' ✅"]
Loading

Reviews (1): Last reviewed commit: "fix: correct spelling errors in Austrian..." | Re-trigger Greptile

Comment thread t/lang-data.t
# Regression: Austrian October abbreviation must be "Okt" (German), not "Oct" (English)
{
my $at = Date::Language->new('Austrian');
# Thu Oct 14 12:00:00 1999 UTC — mon=9 (October)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Incorrect date in test comment

The comment says Thu Oct 14 12:00:00 1999 UTC but 939816000 actually corresponds to Wed Oct 13 12:00:00 1999 UTC (verified with gmtime). The test logic is correct — October 13 is still in October (month index 9), so "Okt" is returned as expected — but the comment is misleading.

Suggested change
# Thu Oct 14 12:00:00 1999 UTC — mon=9 (October)
# Wed Oct 13 12:00:00 1999 UTC — mon=9 (October)

@Koan-Bot Koan-Bot deleted the koan.atoomic/fix-language-spelling-errors branch April 27, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants