[openstreetmap/openstreetmap-website] Add test for mediawiki magic words in translations (PR #6342)
Tom Hughes
notifications at github.com
Thu Aug 21 18:50:10 UTC 2025
@tomhughes commented on this pull request.
> @@ -135,6 +142,16 @@ def check_values_for_raw_html(hash)
end
end
+ def check_values_for_gender_macro(hash)
+ hash.each_pair do |k, v|
+ if v.is_a? Hash
+ check_values_for_gender_macro(v)
+ else
+ raise "Avoid using GENDER macro in '#{k}: #{v}'" if v.include? "{{GENDER:"
I've updated it to handle `PLURAL` and `GRAMMAR` as well now.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6342#discussion_r2291876120
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6342/review/3141905690 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250821/6104fe7c/attachment.htm>
More information about the rails-dev
mailing list