Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{page}} macro calls on Spanish pages [es] #3898

Closed
3 tasks done
cw118 opened this issue Jan 29, 2022 · 7 comments
Closed
3 tasks done

{{page}} macro calls on Spanish pages [es] #3898

cw118 opened this issue Jan 29, 2022 · 7 comments
Assignees
Labels
l10n-es Issues related to Spanish content.

Comments

@cw118
Copy link
Member

cw118 commented Jan 29, 2022

Quoting SphinxKnight:

The old transclusion macro {{page}} has been removed and is not working anymore.

The {{page}} macro must be replaced by the content it was meant to transclude, with the ultimate goal being to match locale files with the en-US pages.

As with searches conducted in all other locales, I've excluded the conflicting and orphaned folders since they require "special handling". There are 108 results in 56 files for es so far:

25 pages in Web/API:
  • web/api/battery_status_api/index.html
  • web/api/batterymanager/index.html
  • web/api/batterymanager/charging/index.html
  • web/api/batterymanager/chargingtime/index.html
  • web/api/batterymanager/dischargingtime/index.html
  • web/api/batterymanager/level/index.html
  • web/api/batterymanager/onchargingchange/index.html
  • web/api/batterymanager/onlevelchange/index.html
  • web/api/customevent/index.html
  • web/api/document/index.html
  • web/api/dragevent/index.html
  • web/api/element/animate/index.html
  • web/api/element/wheel_event/index.html
  • web/api/filereader/readasarraybuffer/index.html
  • web/api/filereader/readasdataurl/index.html
  • web/api/geolocation_api/index.html
  • web/api/mediastreamaudiosourcenode/index.html
  • web/api/notification/body/index.html
  • web/api/notification/dir/index.html
  • web/api/notification/icon/index.html
  • web/api/notification/onclick/index.html
  • web/api/notification/permission/index.html
  • web/api/notification/requestpermission/index.html
  • web/api/notifications_api/using_the_notifications_api/index.html
  • web/api/screen/index.html
19 pages in Web/JavaScript:
  • web/javascript/reference/index.html
  • web/javascript/reference/global_objects/arraybuffer/index.html
  • web/javascript/reference/global_objects/asyncfunction/index.html
  • web/javascript/reference/global_objects/date/index.html
  • web/javascript/reference/global_objects/date/tolocaledatestring/index.html
  • web/javascript/reference/global_objects/evalerror/index.html
  • web/javascript/reference/global_objects/intl/numberformat/index.html
  • web/javascript/reference/global_objects/number/parsefloat/index.html
  • web/javascript/reference/global_objects/object/index.html
  • web/javascript/reference/global_objects/promise/index.html
  • web/javascript/reference/global_objects/proxy/index.html
  • web/javascript/reference/global_objects/rangeerror/index.html
  • web/javascript/reference/global_objects/set/index.html
  • web/javascript/reference/global_objects/string/localecompare/index.html
  • web/javascript/reference/global_objects/symbol/index.html
  • web/javascript/reference/global_objects/syntaxerror/index.html
  • web/javascript/reference/global_objects/urierror/index.html
  • web/javascript/reference/global_objects/weakmap/index.html
  • web/javascript/reference/global_objects/weakset/index.html
Misc, Web/CSS, Web/HTML and MDN (edit: please see #4822 for dealing with the Tools section):
  • web/css/max-block-size/index.html
  • web/css/shorthand_properties/index.html
  • web/html/element/input/date/index.html
  • web/html/element/input/email/index.html
  • web/html/element/input/number/index.html
  • web/html/element/track/index.html
  • (mdn/structures/macros/other/index.html — looks like occurrences were found here because the page shows examples of the macro in use, so it seems that this file can be "ignored" for now)

Dividimos este Issue:

@SphinxKnight SphinxKnight added the l10n-es Issues related to Spanish content. label Jan 29, 2022
@JuanVqz JuanVqz changed the title {{page}} macro calls on Spanish pages {{page}} macro calls on Spanish pages [es] Jan 30, 2022
@JuanVqz JuanVqz self-assigned this Jan 30, 2022
@JuanVqz JuanVqz linked a pull request Jan 30, 2022 that will close this issue
@JuanVqz
Copy link
Member

JuanVqz commented Jan 30, 2022

I didn't find how to search per page, at the end I find by match.

I have counted 36 matches in Web/API files/es/web/api/filereader/readasarraybuffer/index.html:27:

{{page("/es-ES/docs/Web/API/FileReader","Specifications")}}

files/es/web/api/filereader/readasarraybuffer/index.html:31:

{{page("/es-ES/docs/Web/API/FileReader","Browser compatibility")}}

files/es/web/api/filereader/readasdataurl/index.html:58:

{{page("/en-US/docs/Web/API/FileReader","Specifications")}}

files/es/web/api/filereader/readasdataurl/index.html:62:

{{page("/en-US/docs/Web/API/FileReader","Browser compatibility")}}

files/es/web/api/notifications_api/using_the_notifications_api/index.html:287:

{{page("/en-US/Web/API/Notification","Browser compatibility")}}

files/es/web/api/mediastreamaudiosourcenode/index.html:51:

{{page("/en-US/docs/Web/API/AudioContext.createMediaStreamSource","Example")}}

files/es/web/api/document/index.html:79:

{{page("/en-US/docs/Web/API/ParentNode","Properties")}}

files/es/web/api/geolocation_api/index.html:67:

{{page("/en-US/docs/DOM/window.navigator.geolocation.getCurrentPosition","PositionOptions")}}

files/es/web/api/geolocation_api/index.html:94:

{{page("/en-US/docs/DOM/window.navigator.geolocation.getCurrentPosition","Position")}}

files/es/web/api/geolocation_api/index.html:96:

{{page("/en-US/docs/DOM/window.navigator.geolocation.getCurrentPosition","Coordinates")}}

files/es/web/api/geolocation_api/index.html:107:

{{page("/en-US/docs/DOM/window.navigator.geolocation.getCurrentPosition","PositionError")}}

files/es/web/api/screen/index.html:61:

{{page("/en-US/docs/Web/API/EventTarget","Methods")}}

files/es/web/api/battery_status_api/index.html:32:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/battery_status_api/index.html:34:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

files/es/web/api/element/wheel_event/index.html:33:

{{page("/en-US/docs/Web/API/WheelEvent", "Properties")}}

files/es/web/api/element/wheel_event/index.html:37:

{{page("/en-US/docs/Web/API/MouseEvent", "Properties")}}

files/es/web/api/element/wheel_event/index.html:41:

{{page("/en-US/docs/Web/API/UIEvent", "Properties")}}

files/es/web/api/element/wheel_event/index.html:45:

{{page("/en-US/docs/Web/API/Event", "Properties")}}

files/es/web/api/element/wheel_event/index.html:53:

{{page("/en-US/docs/Web/API/WheelEvent", "Methods")}}

files/es/web/api/element/wheel_event/index.html:57:

{{page("/en-US/docs/Web/API/MouseEvent", "Methods")}}

files/es/web/api/element/wheel_event/index.html:61:

{{page("/en-US/docs/Web/API/UIEvent", "Methods")}}

files/es/web/api/element/wheel_event/index.html:65:

{{page("/en-US/docs/Web/API/Event", "Methods")}}

files/es/web/api/dragevent/index.html:110:

{{page("/en-US/docs/Web/API/DataTransfer", "Ver también")}}

files/es/web/api/batterymanager/chargingtime/index.html:19:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/batterymanager/chargingtime/index.html:21:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

files/es/web/api/batterymanager/charging/index.html:21:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/batterymanager/charging/index.html:23:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

files/es/web/api/batterymanager/onlevelchange/index.html:13:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/batterymanager/onlevelchange/index.html:15:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

files/es/web/api/batterymanager/onchargingchange/index.html:13:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/batterymanager/onchargingchange/index.html:15:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

files/es/web/api/batterymanager/level/index.html:15:

{{page("/es/docs/Web/API/BatteryManager","Especificaciones")}}

files/es/web/api/batterymanager/level/index.html:17:

{{page("/es/docs/Web/API/BatteryManager","Compatibilidad")}}

files/es/web/api/batterymanager/index.html:50:

{{page("/en-US/docs/Web/API/EventTarget","Methods")}}

files/es/web/api/batterymanager/dischargingtime/index.html:22:

{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}

files/es/web/api/batterymanager/dischargingtime/index.html:24:

{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}

I have counted 34 matches in Web/Javascript files/es/web/javascript/reference/global_objects/syntaxerror/index.html:50:
{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales/SyntaxError/prototype', 'Propiedades')}}
files/es/web/javascript/reference/global_objects/syntaxerror/index.html:54:
{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales/SyntaxError/prototype', 'Metodos')}}
files/es/web/javascript/reference/global_objects/intl/numberformat/index.html:87:
{{page('en-US/docs/JavaScript/Reference/Global_Objects/NumberFormat/prototype','Properties')}}
files/es/web/javascript/reference/global_objects/intl/numberformat/index.html:93:{{page('en-US/docs/JavaScript/Reference/Global_Objects/NumberFormat/prototype','Methods')}} files/es/web/javascript/reference/global_objects/intl/numberformat/index.html:189:

{{page('en-US/docs/JavaScript/Reference/Global_Objects/Intl','See_also')}}

files/es/web/javascript/reference/global_objects/proxy/index.html:49:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler', 'Methods') }}
files/es/web/javascript/reference/global_objects/asyncfunction/index.html:58:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype', 'Properties')}}
files/es/web/javascript/reference/global_objects/urierror/index.html:50:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError/prototype', 'Properties')}}
files/es/web/javascript/reference/global_objects/urierror/index.html:54:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError/prototype', 'Methods')}}
files/es/web/javascript/reference/global_objects/number/parsefloat/index.html:27:

{{page("en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat", "Parameters")}}

files/es/web/javascript/reference/global_objects/number/parsefloat/index.html:31:

{{page("en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat", "Return value")}}

files/es/web/javascript/reference/global_objects/weakmap/index.html:52:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/WeakMap/prototype','Properties')}}

files/es/web/javascript/reference/global_objects/weakmap/index.html:56:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/WeakMap/prototype','Methods')}}

files/es/web/javascript/reference/global_objects/string/localecompare/index.html:26:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator', 'Parameters')}}
files/es/web/javascript/reference/global_objects/date/tolocaledatestring/index.html:32:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat', 'Parameters')}}
files/es/web/javascript/reference/global_objects/rangeerror/index.html:49:
{{page('/es/docs/Web/JavaScript/Reference/Global_Objects/RangeError/prototype', 'Propiedades')}}
files/es/web/javascript/reference/global_objects/rangeerror/index.html:53:
{{page('/es/docs/Web/JavaScript/Reference/Global_Objects/RangeError/prototype', 'Métodos')}}
files/es/web/javascript/reference/global_objects/symbol/index.html:124:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Symbol/prototype','Properties')}}

files/es/web/javascript/reference/global_objects/symbol/index.html:128:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Symbol/prototype','Methods')}}

files/es/web/javascript/reference/global_objects/arraybuffer/index.html:77:

{{page('es/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/prototype','Propiedades')}}

files/es/web/javascript/reference/global_objects/arraybuffer/index.html:81:

{{page('es/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/prototype','Métodos')}}

files/es/web/javascript/reference/global_objects/weakset/index.html:50:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/WeakSet/prototype','Properties')}}

files/es/web/javascript/reference/global_objects/weakset/index.html:54:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/WeakSet/prototype','Methods')}}

files/es/web/javascript/reference/global_objects/object/index.html:107:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype', 'Properties') }}
files/es/web/javascript/reference/global_objects/object/index.html:111:
{{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype', 'Methods') }}
files/es/web/javascript/reference/global_objects/set/index.html:58:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Set/prototype','Properties')}}

files/es/web/javascript/reference/global_objects/set/index.html:62:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Set/prototype','Methods')}}

files/es/web/javascript/reference/global_objects/evalerror/index.html:49:
{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales/Error/prototype', 'Properties')}}
files/es/web/javascript/reference/global_objects/evalerror/index.html:53:
{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales/Error/prototype', 'Métodos')}}
files/es/web/javascript/reference/global_objects/promise/index.html:86:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Promise/prototype','Properties')}}

files/es/web/javascript/reference/global_objects/promise/index.html:90:

{{page('en-US/Web/JavaScript/Reference/Global_Objects/Promise/prototype','Methods')}}

files/es/web/javascript/reference/index.html:13:
{{page('/es/docs/Web/JavaScript/Referencia/Objetos_globales', 'Objetos_est.C3.A1ndar_(por_categor.C3.ADa)')}}
files/es/web/javascript/reference/index.html:17:

{{page('/es/docs/Web/JavaScript/Referencia/Sentencias', 'Statements_and_declarations_by_category')}}

files/es/web/javascript/reference/index.html:21:

{{page('/es/docs/Web/JavaScript/Referencia/Operadores', 'Expressions_and_operators_by_category')}}

I have counted 13 matches in Web/CSS and Web/HTML files/es/web/css/max-block-size/index.html:48:

{{page("/en-US/docs/Web/CSS/max-width", "Values")}}

files/es/web/css/shorthand_properties/index.html:145:

{{page("/en-US/docs/Learn/CSS/Introduction_to_CSS/Cascade_and_inheritance", "Controlling_inheritance")}}

files/es/web/html/element/input/number/index.html:98:

{{page("/en-US/docs/Web/HTML/Element/input/text", "list", 0, 1, 2)}}

files/es/web/html/element/input/number/index.html:112:

{{page("/en-US/docs/Web/HTML/Element/input/text", "placeholder", 0, 1, 2)}}

files/es/web/html/element/input/number/index.html:114:

{{page("/en-US/docs/Web/HTML/Element/input/text", "readonly", 0, 1, 2)}}

files/es/web/html/element/input/date/index.html:85:

{{page("/en-US/docs/Web/HTML/Element/input/number", "step-include")}}

files/es/web/html/element/input/date/index.html:136:

{{page("/en-US/docs/Web/HTML/Element/input/number", "step-include")}}

files/es/web/html/element/input/email/index.html:112:

{{page("/es/docs/Web/HTML/Element/input/text", "list", 0, 1, 2)}}

files/es/web/html/element/input/email/index.html:136:

{{page("/es/docs/Web/HTML/Element/input/text", "pattern-include")}}

files/es/web/html/element/input/email/index.html:140:

{{page("/es/docs/Web/HTML/Element/input/text", "placeholder", 0, 1, 2)}}

files/es/web/html/element/input/email/index.html:142:

{{page("/es/docs/Web/HTML/Element/input/text", "readonly", 0, 1, 2)}}

files/es/web/html/element/input/email/index.html:144:

{{page("/es/docs/Web/HTML/Element/input/text", "size", 0, 1, 2)}}

files/es/web/html/element/track/index.html:120:

{{page("/es/docs/Web/API/TextTrack/cuechange_event", "En el elemento track")}}

Then I did MND and Tools folders manually. 😞

@cw118 Also, I found 13 more matches on WebAPI/notification, Web/API/customevent and Web/API/emenent.

files/es/web/api/notification/onclick/index.html:54:

{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}


files/es/web/api/notification/permission/index.html:176:

{{Page("/en-US/docs/Web/API/Notifications_API", "Firefox OS notes")}}


files/es/web/api/notification/permission/index.html:180:

{{Page("/en-US/docs/Web/API/Notifications_API", "Chrome notes")}}


files/es/web/api/notification/permission/index.html:184:

{{Page("/en-US/docs/Web/API/Notifications_API", "Safari notes")}}


files/es/web/api/notification/body/index.html:56:

{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}


files/es/web/api/notification/icon/index.html:51:

{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}


files/es/web/api/notification/dir/index.html:52:

{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}


files/es/web/api/notification/requestpermission/index.html:129:

{{Page("/en-US/docs/Web/API/Notifications_API", "Firefox OS notes")}}


files/es/web/api/notification/requestpermission/index.html:133:

{{Page("/en-US/docs/Web/API/Notifications_API", "Chrome notes")}}


files/es/web/api/notification/requestpermission/index.html:137:

{{Page("/en-US/docs/Web/API/Notifications_API", "Safari notes")}}


files/es/web/api/customevent/index.html:33:

{{Page("/es/docs/Web/API/Event", "Propiedades")}}


files/es/web/api/customevent/index.html:46:

{{Page("/es/docs/Web/API/Event", "Métodos")}}


files/es/web/api/element/animate/index.html:39: {{Page("/en-US/docs/Web/API/Web_Animations_API/Animation_timing_properties", "Properties")}}

@cw118
Copy link
Member Author

cw118 commented Jan 30, 2022

@JuanVqz I believe Ctrl + F is a universal "search shortcut" that you can try in a file in your code editor, but I'm not entirely sure.

I just looked at the mdn/structures/macros/other/index.html file, and I noticed that occurrences were found here because the page shows examples of the macro in use. So it seems that this file can be "ignored" for now (I've updated the issue and commented on the PR).

@cw118
Copy link
Member Author

cw118 commented Jan 30, 2022

And feel free to split the effort across multiple PRs, or possibly even create more issues to keep track of specific sections!

@JuanVqz
Copy link
Member

JuanVqz commented Jan 30, 2022

And feel free to split the effort across multiple PRs, or possibly even create more issues to keep track of specific sections!

you are right, that sounds reasonable

@SphinxKnight
Copy link
Member

@JuanVqz for what it's worth, I'm using VS Code and looking for the following regexp across the mdn/translated-content folders:
\{\{[ ]?page
An example of such a search in fr/web/html:
image

@Graywolf9
Copy link
Contributor

Finally done! Updating pages and macro removed

@Graywolf9 Graywolf9 moved this to Done in MDN Localization Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-es Issues related to Spanish content.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants