Skip to content

i18n: The message "maps-geo-json-create-page-button" should be in page view language or user language instead of content language #694

Open
@winstonsung

Description

@winstonsung

Setup

  • Maps version: 7.20.1
  • MW version: 1.33.3 (upgrading to 1.37.2; see announcements from Fandom)
  • PHP version: 7.3.33 (fpm-fcgi)
  • SMW version (if applicable): none

Issue

Detailed description of the issue and a stack trace if applicable:

/src/GeoJsonPages/GeoJsonNewPageUi.php :

wfMessage( 'maps-geo-json-create-page-button' )->inContentLanguage()->text()

Steps to reproduce the observation (recommendation is to use the sandbox):

  • Go to any wiki using language with language variants
  • Select zh-hant, zh-tw, zh-hk or zh-mo as the variant ("page view language" aka "user language variant", see Manual:Language )
  • Current behavior: using /zh translation for the "Create this page" button
  • Expected behavior: using /zh-tw translation for the "Create this page" button

Related files:

/psalm-baseline.xml
/src/GeoJsonPages/GeoJsonNewPageUi.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions