I am new to Drupal world and creating a site in Urdu language in Drupal 8. I have enabled its multilingual support and set default language to Urdu (in fact, this is the only language of the site).
I have created a content type and enabled to show Display author and date information. I have also added some contents for this content type. When I go to view some content, its author and date information is displayed as below.
Submitted by mabilalmirza on Fri, 02/09/2018 - 23:33
I know I can translate the string using translation interface but I want the day name to be shown in Urdu, for example, Fri should be translated to جمعہ. I want to translate month names as well for long date format.
Can anyone guide me to accomplish this?
go to your date format for example /admin/config/regional/date-time/formats/manage/long
and change lang to your or create new date format.
Try "User interface translation" in Config (/admin/config/regional/translate). If you add translations to Urdu it should change "days" for you.
Related
I am trying to add data to a Map with Danish postcodes, e.g. 1000-9000 (we have four digits in Denmark).
When I add that into a Map, it scatters all over the world, as Power BI do not recognize it as Danish locations, even my Power BI is setup in Danish and the Map has Danish spelled city names.
I tried to add the regions Jylland, Fyn, Sjælland as a country hierarchy, but doing that moved Jylland (Jutland) as a place in Norway...
I also tried to use city names instead of post codes, but then a city shows up in Sweden...
It does not change whether the post code format is Text or Number format, and I have no option to use a Location format in the query.
Can anyone help me use Danish post codes for Map visualization? : )
Thanks
Ok, I solved it myself!
I found the place in the modelling part where I could force PowerBI to accept my city names, region names etc. and it now works.
More detailed: go into the middle of the three left side windows called Data (not Report, not Model), and click on the column you want to change format of. Then find the Tools section and change the Data Category to for example Address, or Country etc. Hope that helps
We have recently set up a new org in Microsoft 365. The issue we're having is all of our users/apps are defaulting to "US" formats - mm/dd/yy, Letter page sizes, etc. Our "Country" is set to "Australia" on the main Org Information panel in the admin center.
Does anyone know how to force all of the formats to adhere to the org country?
Note: Some defaults can be fixed manually in a specific app, but some cant be (e.g. Planner date format stays mm/dd/yy)
As it turns out, it's not possible. All of the defaults are set to US and users need to manually change each app/platform to their country's defaults.
I have a country table , with three column country code and country name and country phone code , and static file for all country flag also.
All flag image name same a country code in table ,how I can create a select list to Display country flag CONCATENATION with country name .
I went to apex.world and found this plug-in from Alan Arentsen that seems to fit the bill: https://apex.world/ords/f?p=100:710:::::P710_PLG_ID:COM.ADBC.APEX.JET.OJSELECTCOMBOBOX However, it doesn't currently support APEX 19.1+. If you don't mind experimenting a little, you could update the JS file in the plug-in (once installed) using the code I submitted in this PR: https://github.com/alanarentsen/plugin-apex-jet-ojselectcombobox/pull/6 Or you could wait until he's able to get a new version out, though I can't say how long that would take.
Another option would be to use the popup LOV and then modify the template using JavaScript to allow it to display images. If you take the plug-in or Popup LOV path and need more details, let me know and I'll provide them.
I am having difficulty with a duration field on my form/table.
The users need to indicate in HH:MM how long a meeting took.
What datatype should the column have in the Table. Currently it is TIMESTAMP
How can I make the field have an input mask of 'HH:MM'. What I would like is for the user to be able to type '0130' and the field format it to '01:30' immediately.
Reporting on these times is required so I assume that entering the data as VARCHAR will not help.
Honestly, this is not such an easy subject as people might think it is, and probably more from a user interface point of view than technically.
The easiest way out? The apex datetimepicker. And honestly, if you're new to the technology I'd advise you to use this, especially if you want to steer clear from javascript/jquery initially.
Let's put it this way: the datepicker is fine and works good, but time is really not that fantastic.
Not all that hot right. The value in the input item does not change until you hit 'Close'. The time component seems like a last second sloppy addition honestly. It works, however. (But I'd still set the field to readonly so that a user can not enter text directly.)
Allowing text to be entered means it needs to be validated according to the correct format mask. And format masks differ between those in jQuery (the datepicker) and those in Oracle, and it might be possible that your oracle format mask is not possible in the datepicker, adding even more complexity. There is also no 'live' date validation (nor datetime), there is only the builtin item validation which will check the format mask and which fires on submit.
Anyway, I'd say take a look at it. Set your item to be displayed as a Date Picker, and use the format mask under settings to get the datetime picker:
Now you can push it further of course, though it'll cost some effort. There are several options though.
Personally, when I've implemented date+time I've always split the date from the time in 2 fields. 1 with the date component, and one with the time component, while keeping the item with the original value hidden (so 3 items total). I then use the datepicker on the date item, and use jquery timepicker plugins on the time item. On submit I then add the 2 values together and parse them in a date, and put this value in the original item again (to allow the standard processing to work on items with source set to database column).
One example of a timepicker is here, another one here. They're both not that hard to implement. They have good documentation too. I don't want to dive in the implementation of it here though, I advise you take a look at it first and see how much it scares you. (I'd set up an apex demo but am a bit pressed for time at the moment).
For example, using Trent's (second link) plugin:
put the js file in the apex images directory. I made a folder "/custom" in my case
add the required js files to the page (assuming apex 4.2, put this in javascript file urls)
#IMAGE_PREFIX#libraries/jquery-ui/1.8.22/ui/jquery.ui.slider.js
#IMAGE_PREFIX#custom/jquery-ui-timepicker-addon.js
use onload code such as this to initialize a field
$("#P95_DEPARTURE_TIME").timepicker({hourGrid: 4,minuteGrid: 10});
It'll end up looking as this:
Any further interaction between pickers will need to be handled in javascript code if you want it live. Don't forget server validations.
As for items, my hidden date item has format mask DD-MON-YYYY HH24:MI. Format masks are important, because items are bind variables, and bind variables are varchar2. The value in the html form is also just that, text.
For example, this is on my displayed date item, with a similar setup for the time item:
Then in an after-submit computation I glue the values together again and put them in the m that'll save the value to the database:
:P95_DEPARTURE_DATE_DISP||' '||:P95_DEPARTURE_TIME
This is just a short guide on the setup though, but might be interesting once you're a bit more familiar with the product.
There are also 2 timepicker plugins on apex-plugin, but honestly I don't find them interesting at all when compared to these already existing fine jquery plugins.
Give it some thought and look at it.
If quarters are enough..
item: text field with autocomplete
SELECT ss|| ':' || dd ss_dd
FROM
(SELECT to_char(trunc(sysdate)+(level - 1)/ 24,'HH24')ss
FROM dual CONNECT BY level <= 24),
(SELECT lpad(mod(15 * level, 60), 2, '0') dd
FROM dual CONNECT BY level <= 4)
APEX 4.2: Just to shed some light for any future viewings; now there are loads of Apex plugins for the purpose of picking Date/Time or both returning variations of date time formats as you would required. For e.g. as in your case HH:MM or HH24:MI.
I have personally used TimePicker plugin from http://www.apex-plugin.com which I have no problem in recommending.
I have an application in which allow users to query some data based on date. The application supports different westerns languages and the user is allowed to input the query in their format.
the various formats includes
15.10.2012
15/10/2012
10/15/2012
15-Oct-2012
15-Okt-2012
The last one is a different language and the look up table doesn't fit well for this because I need to define the lookup tables to the N number of languages I support.
I believe there could be some solution MFC/C++ Library/Windows platform itself to extract the date information in various valid format. Please help if there are some libraries/APIs sort of.
In most of the modern GUIs the user are not required to enter the date/time by keying-in. Usually there are some sort of calender controls which helps the user to enter the date-time. Can't you use some of these controls (for e.g : http://msdn.microsoft.com/en-us/library/hhdec0z1(v=vs.80).aspx) to restrict the user input? And you can always display the date/time back to the user in the current locale using the microsoft function strftime().