mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Finish i18n of fr
This commit is contained in:
@ -332,12 +332,12 @@ class App extends Component {
|
||||
{
|
||||
this.renderAvatar()
|
||||
}
|
||||
|
||||
|
||||
{Setting.isMobile() ? null : Setting.getShortName(this.state.account.displayName)} <DownOutlined />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{Setting.isMobile() ? null : Setting.getNameAtLeast(this.state.account.displayName)} <DownOutlined />
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</Dropdown>
|
||||
);
|
||||
|
@ -155,8 +155,8 @@ class ProductBuyPage extends React.Component {
|
||||
text = i18next.t("product:Alipay");
|
||||
} else if (provider.type === "WeChat Pay") {
|
||||
text = i18next.t("product:WeChat Pay");
|
||||
} else if (provider.type === "Paypal") {
|
||||
text = i18next.t("product:Paypal");
|
||||
} else if (provider.type === "PayPal") {
|
||||
text = i18next.t("product:PayPal");
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -672,6 +672,22 @@ export function getShortName(s) {
|
||||
return s.split("/").slice(-1)[0];
|
||||
}
|
||||
|
||||
export function getNameAtLeast(s) {
|
||||
s = getShortName(s);
|
||||
if (s.length >= 6) {
|
||||
return s;
|
||||
}
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
|
||||
{s}
|
||||
|
||||
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
export function getShortText(s, maxLength = 35) {
|
||||
if (s.length > maxLength) {
|
||||
return `${s.slice(0, maxLength)}...`;
|
||||
@ -851,7 +867,7 @@ export function getProviderTypeOptions(category) {
|
||||
{id: "OneDrive", name: "OneDrive"},
|
||||
{id: "Oura", name: "Oura"},
|
||||
{id: "Patreon", name: "Patreon"},
|
||||
{id: "Paypal", name: "Paypal"},
|
||||
{id: "PayPal", name: "PayPal"},
|
||||
{id: "SalesForce", name: "SalesForce"},
|
||||
{id: "Shopify", name: "Shopify"},
|
||||
{id: "Soundcloud", name: "Soundcloud"},
|
||||
|
@ -237,7 +237,7 @@ const authInfo = {
|
||||
scope: "identity",
|
||||
endpoint: "https://www.patreon.com/oauth2/authorize",
|
||||
},
|
||||
Paypal: {
|
||||
PayPal: {
|
||||
scope: "openid%20profile%20email",
|
||||
endpoint: "https://www.sandbox.paypal.com/connect",
|
||||
},
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Pay",
|
||||
"Payment providers": "Payment providers",
|
||||
"Payment providers - Tooltip": "Payment providers - Tooltip",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Pay",
|
||||
"Payment providers": "Payment providers",
|
||||
"Payment providers - Tooltip": "Providers of payment services",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Pagar",
|
||||
"Payment providers": "Proveedores de pago",
|
||||
"Payment providers - Tooltip": "Proveedores de servicios de pago",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Haciendo un pedido...",
|
||||
"Please provide your username in the remark": "Por favor proporcione su nombre de usuario en el comentario",
|
||||
"Please scan the QR code to pay": "Por favor, escanee el código QR para pagar",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -458,7 +458,7 @@
|
||||
"Pay": "Pay",
|
||||
"Payment providers": "Payment providers",
|
||||
"Payment providers - Tooltip": "Payment providers - Tooltip",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Pay",
|
||||
"Payment providers": "Payment providers",
|
||||
"Payment providers - Tooltip": "Payment providers - Tooltip",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Оплатить",
|
||||
"Payment providers": "Платежные системы",
|
||||
"Payment providers - Tooltip": "Payment providers - Tooltip",
|
||||
"Paypal": "PayPal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -458,7 +458,7 @@
|
||||
"Pay": "Pay",
|
||||
"Payment providers": "Payment providers",
|
||||
"Payment providers - Tooltip": "Payment providers - Tooltip",
|
||||
"Paypal": "Paypal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "Placing order...",
|
||||
"Please provide your username in the remark": "Please provide your username in the remark",
|
||||
"Please scan the QR code to pay": "Please scan the QR code to pay",
|
||||
|
@ -226,7 +226,7 @@
|
||||
"Preview - Tooltip": "可预览所配置的效果",
|
||||
"Products": "商品",
|
||||
"Provider": "提供商",
|
||||
"Provider - Tooltip": "需要配置的支付提供商,包括Paypal、支付宝、微信支付等",
|
||||
"Provider - Tooltip": "需要配置的支付提供商,包括PayPal、支付宝、微信支付等",
|
||||
"Providers": "提供商",
|
||||
"Providers - Tooltip": "需要配置的提供商,包括第三方登录、对象存储、验证码等",
|
||||
"Real name": "姓名",
|
||||
@ -458,7 +458,7 @@
|
||||
"Pay": "支付方式",
|
||||
"Payment providers": "支付提供商",
|
||||
"Payment providers - Tooltip": "支持的支付提供商,包括PayPal、支付宝、微信支付等",
|
||||
"Paypal": "PayPal",
|
||||
"PayPal": "PayPal",
|
||||
"Placing order...": "正在下单...",
|
||||
"Please provide your username in the remark": "请在备注中提供您的用户名",
|
||||
"Please scan the QR code to pay": "请扫描二维码支付",
|
||||
|
Reference in New Issue
Block a user