diff --git a/TRANSLATIONS.md b/TRANSLATIONS.md index d0206bb03..d06114d65 100644 --- a/TRANSLATIONS.md +++ b/TRANSLATIONS.md @@ -32,7 +32,7 @@ If you would like to translate FFDec to your language, please follow these steps See [table](http://www.loc.gov/standards/iso639-2/php/code_list.php) (ISO 639-1 Code) for available codes. 5. When you are ready, use `Export JPT` button to export modified strings to an archive (.jpt extension) 6. Send that archive to us, you can use either - - Issue tracker (preffered) - Search for an issue with title `Translation: xxxx`, create new if it does not exist + - Issue tracker (preferred) - Search for an issue with title `Translation: xxxx`, create new if it does not exist - or e-mail it to `jindra.petrik@gmail.com` 7. There's no need to translate everything. Some resource packs are HUGE (like `docs/pcode/AS3`) and generally not needed. For `AdvancedSettingDialog` you don't need to translate config descriptions (`config.description.*` keys). diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ecma/EcmaScript.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ecma/EcmaScript.java index ddb1d1150..db4a3728b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ecma/EcmaScript.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ecma/EcmaScript.java @@ -85,10 +85,10 @@ public class EcmaScript { /** * Converts value to a primitive. * @param o Value to convert - * @param prefferedType Preferred type + * @param preferredType Preferred type * @return Primitive value */ - public static Object toPrimitive(Object o, String prefferedType) { + public static Object toPrimitive(Object o, String preferredType) { if (o == Undefined.INSTANCE) { return o; } @@ -105,7 +105,7 @@ public class EcmaScript { return o; } if (o instanceof ObjectType) { - return object_defaultValue((ObjectType) o, prefferedType); + return object_defaultValue((ObjectType) o, preferredType); } return Undefined.INSTANCE; //?? } diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index d61be643a..e43f33142 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -5319,9 +5319,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se fc.setCurrentDirectory(new File(Configuration.lastOpenDir.get())); if (imagePreview) { fc.setAccessory(new FileChooserImagePreview(fc)); - Dimension prefferedSize = new Dimension(fc.getPreferredSize()); - prefferedSize.width += FileChooserImagePreview.PREVIEW_SIZE; - fc.setPreferredSize(prefferedSize); + Dimension preferredSize = new Dimension(fc.getPreferredSize()); + preferredSize.width += FileChooserImagePreview.PREVIEW_SIZE; + fc.setPreferredSize(preferredSize); } boolean first = true; for (int i = 0; i < filterArray.length; i += 2) { diff --git a/src/com/jpexs/decompiler/flash/gui/View.java b/src/com/jpexs/decompiler/flash/gui/View.java index 67fab488d..df49330e0 100644 --- a/src/com/jpexs/decompiler/flash/gui/View.java +++ b/src/com/jpexs/decompiler/flash/gui/View.java @@ -491,7 +491,7 @@ public class View { } public static ImageIcon getIcon(String name, int size) { - ImageIcon icon = getIcon(getPrefferedIconName(name, size)); + ImageIcon icon = getIcon(getPreferredIconName(name, size)); if (icon.getIconWidth() == size && icon.getIconHeight() == size) { return icon; } @@ -527,7 +527,7 @@ public class View { return View.class.getResource("/com/jpexs/decompiler/flash/gui/graphics/" + resource + ".png") != null; } - private static String getPrefferedIconName(String resource, int preferredSize) { + private static String getPreferredIconName(String resource, int preferredSize) { Matcher m = Pattern.compile("(.*[^0-9])([0-9]+)").matcher(resource); if (m.matches()) { int origSize = Integer.parseInt(m.group(2)); @@ -542,7 +542,7 @@ public class View { } public static ImageWrapperResizableIcon getResizableIcon(String resource, int preferredSize) { - return getResizableIcon(getPrefferedIconName(resource, preferredSize)); + return getResizableIcon(getPreferredIconName(resource, preferredSize)); } public static ImageWrapperResizableIcon getResizableIcon(String resource) {