Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Navigation

Where to find 'Select' ?

Last updated on 3 months ago
helmuthhelmuth
Posted 3 years ago
I have been looking for the word 'Select' in all the Danish locale files - without luck :(

Could someone point out where to find it ?

Btw. it's in v.9.0.3
helmuth attached the following file:
v903-adminmenu2-language.png [60.39kB / 188 Downloads]
KamilloKamillo
Posted 3 years ago
Perhaps ../locale/../admin/fields.php.
RobiNNRobiNN
Posted 3 years ago
It's not in PHP Fusion.

www.php-fusion.co.uk/infusions/forum/attachments/jiop0lg58t95ei4b.png
RobiNN attached the following file:
jiop0lg58t95ei4b.png [4.16kB / 138 Downloads]
FalkFalk
Posted 3 years ago
Perhaps 2 locale, 1, $locale="Select" 2, $locale="fil" ?
Select should be from JS or something connected to Dynamics while the "fil" is already translated somewhere.
RobiNNRobiNN
Posted 3 years ago
I found it
https://github.com/PHPFusion/PHPFusion-9-Locale/blob/master/Danish/includes/dynamics/assets/fileinput/js/locales/da.js#L27
{files} == https://github.com/PHPFusion/PHPFusion-9-Locale/blob/master/Danish/includes/dynamics/assets/fileinput/js/locales/da.js#L15

Just translate Select
helmuthhelmuth
Posted 3 years ago
thanx for the finding ;)
helmuthhelmuth
Posted 3 years ago
I've run into a kind of catch 22 situation here regarding the screen presentation of this translation :(

the Danish letter æ is viewed as æ

as you can see in the code box below it must be written as æ and I have checked that I save the file in UTF-8 encoding.

How can I solve this?

(function ($) {
    "use strict";

    $.fn.fileinputLocales['da'] = {
        fileSingle: 'fil',
        filePlural: 'filer',
        browseLabel: 'Browse …',
        removeLabel: 'Fjern',
        removeTitle: 'Fjern valgte filer',
        cancelLabel: 'Fortryd',
        cancelTitle: 'Afbryd nuværende upload',
        uploadLabel: 'Upload',
        uploadTitle: 'Upload valgte filer',
        msgNo: 'Ingen',
        msgNoFilesSelected: '',
        msgCancelled: 'aflyst',
        msgPlaceholder: 'Vælg {files}...',
        msgZoomModalHeading: 'Detaljeret visning',
        msgFileRequired: 'Du skal vælge en fil at uploade.',
        msgSizeTooSmall: 'Fil "{name}" (<b>{size} KB</b>) er for lille og skal v&aelig;re st&oslash;rre end <b>{minSize} KB</b>.',
ChanChan
Posted 3 years ago
Helmuth, the image on the first post is a fileinput isn't it?
i.e. echo form_fileinput(.........);

with that the button locale value is

$calback_value = '';
$options = [
'label' => 'Anything'
];
echo form_fileinput('name', 'label', $callback_value, $options);


It defaults to $locale['browse']
https://github.com/PHPFusion/PHPFusion/blob/9.03/locale/English/global.php#L461
helmuthhelmuth
Posted 3 years ago
the displayed text in the form is fetched from the file RobiNN is pointing at

the problem is that I want the Danish character æ to be displayed as æ and not as &aelig;
FalkFalk
Posted 3 years ago
Make sure it is saved as UTF8 - No Bom, that could do the trick.
helmuthhelmuth
Posted 3 years ago
I'm using TextWrangler and it seems I do not have the proposed option:
Edited by helmuth on 02-03-2018 09:22, 3 years ago
helmuth attached the following file:
utf-8-bom.png [147.51kB / 145 Downloads]
KamilloKamillo
Posted 3 years ago
Better Notepad ++
https://notepad-plus-plus.org/
helmuthhelmuth
Posted 3 years ago
I've saved the file with TextEdit and updated it on my localhost - no thumbs up
helmuth attached the following file:
utf-8-dom-2.png [29.01kB / 135 Downloads]
ChanChan
Posted 3 years ago
All Github files are saved under - UTF-8 (no-bom) & LF format by default, a convention between developers working at the repository.

For text wranger, there is a version 3.5 stating in their software update:

Quote

The following UI changes have been made to text encoding selection:

"Unicode (UTF-8, no BOM)" has been renamed to "Unicode (UTF-8)".

"Unicode (UTF-8)" has been renamed to "Unicode (UTF-8, with BOM)".

The text encodings menu (as used in the status bar, preferences, and other locations) has been rearranged so that the most commonly used Unicode variants (UTF-8 and UTF-16-BE+BOM) are at the top of the menu, with a separator between them and the rest.


http://www.barebones.com/support/textwrangler/notes_tw35.html

I did not find the image, you have to fiddle around the software.

Recommending full fledge IDE for working with PHP Fusion as we're now working with Git, namespace, classes, etc, that has everything in a single software. It's wise to get a full fledge IDE to cut your development time significantly.
helmuthhelmuth
Posted 3 months ago
I can see that the problem still exists - I just installed a clean version on my local host
helmuth attached the following image:
danish-selectfile-v90380.png
FalkFalk
Posted 3 months ago
It seems to be in your translation file, https://github.com/php-fusion/locales.../da.js#L30
helmuthhelmuth
Posted 3 months ago
I know ... but it's an .js file and ALL æÆ øØ åÅ must be writen as code ... as you can see in the file

All the others are shown correctly - except this one ?!?
FalkFalk
Posted 3 months ago
Did you try not not write it as non entity code?, we are on UTF-8 now, it should be accepted as plain input.
 
Edited by Falk on 01-11-2020 11:01, 3 months ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Falk, helmuth, Chan, Kamillo, RobiNN,