الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

كيف نغير اتجاه الحقول من اليمين الى الشمال وبالعكس؟

Featured Replies

بتاريخ:

السلام عليكم
أريد أن أغير مسار الحقول في البرنامج لتكون من اليمين الى الشمال لأنني أستخدم صفحة باللعة العربية
ولكن أسماء الحقول تأتي من الشمال الى اليمين؟
فماهي الطريقة المناسبة لذلك؟

وشكرا لكم

بتاريخ:
  • كاتب الموضوع

وجدت حلا جزئيا وهو على مستوى عملية البحث ياستخدام New Skin ووضع الكود التالي:
af|query
{
direction: rtl;
font-effect: emboss;
position: relative;
}

نريد حلا على مستوى المشروع بأكمله

وشكرا لكم

بتاريخ:

انا عن نفسى عامل 2 buttons كدة فى اعلى الصفحة . مثلا عربي و انجليزى
و فى الpage بروح على <view و اعمل

<f:view locale="#{common.locale}">


و عامل managed bean ممكن تستخدمها و هى :

public class DhamanCommon {
   private String locale = "ar";
public void setLocale(String locale) {
    this.locale = locale;
   }
   public String getLocale() {
    return locale;
   }
 public void switchToArabic(ActionEvent actionEvent) {
    // Add event code here...
    setLocale("ar");
    String requestURL = ServerUtil.getHTTPServletRequest().getRequestURI();
    ServerUtil.redirect(requestURL);
   }
   public void swithcToEnglish(ActionEvent actionEvent) {
    // Add event code here...
    setLocale("en");
    String requestURL = ServerUtil.getHTTPServletRequest().getRequestURI();
    ServerUtil.redirect(requestURL);
   }
}



و علشان الكود يشتغل لازم تعمل الكلاس دى اللى بتعمل refresh للصفحة

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

public class ServerUtil {
// private static Logger sLog = Logger.getLogger(Utils.class);
 private static final String CREATE_MODES_KEY = "createModes";

 /**
  * Get Http request from external context.
  * @return
  */
 public static HttpServletRequest getHTTPServletRequest() {
  return (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
 }
 public static void redirect(String redirectUrl)
 {
   try
   {
  ExternalContext ext =
    FacesContext.getCurrentInstance().getExternalContext();
  ext.redirect(redirectUrl);
   }
   catch (IOException e)
   {
    e.printStackTrace();
   //  sLog.error("Error redirecting to " + redirectUrl + ": " + e.getMessage());
   }
 }
}


يا ريت تخلى ال 2 classess فى باكج واحدة

و بعد كدة بتروح على الصفحة بتاعتك وو تعمل ال buttons كالتالي

		   <af:panelGroupLayout id="pt_pgl33" layout="horizontal">
					  <af:commandLink text="عربي" id="pt_cni1"
									    disabled='#{common.locale eq "ar"}'
									    actionListener="#{common.switchToArabic}"
									   />
					  <af:commandLink text="English" id="pt_cni2"
									    disabled='#{common.locale eq "en"}'
									    actionListener="#{common.swithcToEnglish}"
									    />
</af:panelGroupLayout >


جرب كدة و قولى

بتاريخ:

ملاحظة
لو انت عاوز الصفحة تشتغل عربي بس من غير تغيير لغة و لا حاجة بس روح على السورس بتاع الصفحة و عند < <f:view اكتب

<f:view locale="ar">

تم تعديل بواسطة tarek_fathi

بتاريخ:
  • كاتب الموضوع

شكرا جزيلا لك
الآن الواجهة العربية تعمل بشكل ممتاز

شكرا لك

بتاريخ:

بالنسبة لي كمبتدئ
فالنظام اشتغل كاملا باللغة العربية وكذلك الاتجاه عند تغيير المنطقة الزمنية إلى العربية
TimeZone
Asia/Riaydh

الطريقة أرسلتها في الرابط
http://www.araboug.org/ib/index.php?showtopic=49194

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.