xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
954 stars 83 forks source link

StyloaiX editor error due to removal of sourceeditor.dtd [Nightly 101.0a1 (2022-04-13)] #130

Closed askii2 closed 2 years ago

askii2 commented 2 years ago

Mozilla removed sourceeditor.dtd and migrated gotoLine label to sourceeditor.ftl (change link). To fix it, we just need the following changes on edit.xhtml:

 <!DOCTYPE window [
 <!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
  %editMenuStrings;
-<!ENTITY % sourceEditorStrings SYSTEM "chrome://devtools/locale/sourceeditor.dtd">
- %sourceEditorStrings;
 ]>
       <menuitem id="se-menu-gotoLine"
-          label="&gotoLineCmd.label;"
-          accesskey="&gotoLineCmd.accesskey;"
-          key="key_gotoLine"
+          data-l10n-id="styleeditor-go-to-line"
           command="cmd_gotoLine"/>
xiaoxiaoflood commented 2 years ago

Perfect, thanks. I'll push this once DevEd reaches v101, because the fix breaks v100-.