diff --git a/app/src/androidTest/kotlin/com/itsaky/androidide/AutomationEndToEndTest.kt b/app/src/androidTest/kotlin/com/itsaky/androidide/AutomationEndToEndTest.kt index 8d0ba2fc8a..95362a253b 100644 --- a/app/src/androidTest/kotlin/com/itsaky/androidide/AutomationEndToEndTest.kt +++ b/app/src/androidTest/kotlin/com/itsaky/androidide/AutomationEndToEndTest.kt @@ -94,7 +94,12 @@ class AutomationEndToEndTest : TestCase() { } description { isVisible() - hasText(item.description) + hasText( + targetContext.getString( + item.description, + targetContext.getString(com.itsaky.androidide.R.string.app_name), + ), + ) } grantButton { isVisible() diff --git a/app/src/androidTest/kotlin/com/itsaky/androidide/EndToEndTest.kt b/app/src/androidTest/kotlin/com/itsaky/androidide/EndToEndTest.kt index a85d84c5c0..89d5685d6c 100644 --- a/app/src/androidTest/kotlin/com/itsaky/androidide/EndToEndTest.kt +++ b/app/src/androidTest/kotlin/com/itsaky/androidide/EndToEndTest.kt @@ -89,7 +89,12 @@ class EndToEndTest : TestCase() { } description { isVisible() - hasText(item.description) + hasText( + targetContext.getString( + item.description, + targetContext.getString(com.itsaky.androidide.R.string.app_name), + ), + ) } grantButton { isVisible() diff --git a/app/src/androidTest/kotlin/com/itsaky/androidide/screens/PermissionScreen.kt b/app/src/androidTest/kotlin/com/itsaky/androidide/screens/PermissionScreen.kt index 50b158eea4..abd63051c3 100644 --- a/app/src/androidTest/kotlin/com/itsaky/androidide/screens/PermissionScreen.kt +++ b/app/src/androidTest/kotlin/com/itsaky/androidide/screens/PermissionScreen.kt @@ -1,6 +1,7 @@ package com.itsaky.androidide.screens import android.view.View +import androidx.test.platform.app.InstrumentationRegistry import com.itsaky.androidide.R import com.kaspersky.kaspresso.screens.KScreen import io.github.kakaocup.kakao.recycler.KRecyclerItem @@ -10,24 +11,31 @@ import io.github.kakaocup.kakao.text.KTextView import org.hamcrest.Matcher object PermissionScreen : KScreen() { - - override val layoutId: Int? = null - override val viewClass: Class<*>? = null - - val title = KTextView { withText(R.string.onboarding_title_permissions) } - val subTitle = KTextView { withText(R.string.onboarding_subtitle_permissions) } - - val rvPermissions = KRecyclerView( - builder = { withId(R.id.onboarding_items) }, - itemTypeBuilder = { itemType(::PermissionItem) } - ) - - val finishInstallationButton = KButton { withId(R.id.finish_installation_button) } - - class PermissionItem(matcher: Matcher) : KRecyclerItem(matcher) { - - val grantButton = KButton(matcher) { withId(R.id.grant_button) } - val title = KTextView(matcher) { withId(R.id.title) } - val description = KTextView(matcher) { withId(R.id.description) } - } -} \ No newline at end of file + override val layoutId: Int? = null + override val viewClass: Class<*>? = null + + val title = KTextView { withText(R.string.onboarding_title_permissions) } + + // The subtitle is formatted with the app name, so match the formatted text, not the raw resource. + val subTitle = + KTextView { + val context = InstrumentationRegistry.getInstrumentation().targetContext + withText(context.getString(R.string.onboarding_subtitle_permissions, context.getString(R.string.app_name))) + } + + val rvPermissions = + KRecyclerView( + builder = { withId(R.id.onboarding_items) }, + itemTypeBuilder = { itemType(::PermissionItem) }, + ) + + val finishInstallationButton = KButton { withId(R.id.finish_installation_button) } + + class PermissionItem( + matcher: Matcher, + ) : KRecyclerItem(matcher) { + val grantButton = KButton(matcher) { withId(R.id.grant_button) } + val title = KTextView(matcher) { withId(R.id.title) } + val description = KTextView(matcher) { withId(R.id.description) } + } +} diff --git a/app/src/main/java/com/itsaky/androidide/actions/Util.kt b/app/src/main/java/com/itsaky/androidide/actions/Util.kt index fd7908f38d..0791eebe45 100644 --- a/app/src/main/java/com/itsaky/androidide/actions/Util.kt +++ b/app/src/main/java/com/itsaky/androidide/actions/Util.kt @@ -11,6 +11,7 @@ import android.net.Uri import android.os.Build import android.provider.Settings import android.text.SpannableStringBuilder +import android.text.TextUtils import android.text.method.LinkMovementMethod import androidx.annotation.RequiresApi import androidx.appcompat.app.AlertDialog @@ -51,6 +52,7 @@ fun showNotificationPermissionDialog( context.getString( R.string.adb_pairing_tutorial_content_notification, context.getString(R.string.notification_channel_adb_pairing), + context.getString(R.string.app_name), ), ).setPositiveButton(R.string.title_grant) { dialog, _ -> val intent = Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS) @@ -73,7 +75,11 @@ fun showDebuggerNotReadyMessage(context: Context): AlertDialog? = context.getString(R.string.debugger_not_ready) + System .lineSeparator() - .repeat(2) + context.getString(R.string.debugger_error_suggestion_network_restriction), + .repeat(2) + + context.getString( + R.string.debugger_error_suggestion_network_restriction, + context.getString(R.string.app_name), + ), ).setPositiveButton(android.R.string.ok, null) .show() @@ -87,6 +93,7 @@ suspend fun handleMissingOverlayPermission( PermissionsHelper.OverlayPermissionState.UNSUPPORTED -> { activity.flashError(activity.getString(R.string.permission_overlay_unsupported_hint)) } + PermissionsHelper.OverlayPermissionState.REQUESTABLE -> { val intent = Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION).apply { @@ -102,6 +109,7 @@ suspend fun handleMissingOverlayPermission( ) } } + else -> {} } } @@ -130,11 +138,18 @@ fun showPairingDialog( ssb.append(System.lineSeparator()) ssb.append(System.lineSeparator()) - ssb.appendOrderedList(*context.resources.getStringArray(R.array.debugger_setup_pairing_steps)) + val appName = context.getString(R.string.app_name) + val htmlAppName = TextUtils.htmlEncode(appName) + ssb.appendOrderedList( + *context.resources + .getStringArray(R.array.debugger_setup_pairing_steps) + .map { it.format(htmlAppName) } + .toTypedArray(), + ) ssb.append(System.lineSeparator()) ssb.appendHtmlWithLinks( - context.getString(R.string.debugger_setup_description_footer), + context.getString(R.string.debugger_setup_description_footer, htmlAppName), launchHelp, ) @@ -192,7 +207,7 @@ fun startPairingService( null, ) if (mode == AppOpsManager.MODE_ERRORED) { - flashError(context.getString(R.string.err_foreground_service_denial)) + flashError(context.getString(R.string.err_foreground_service_denial, context.getString(R.string.app_name))) } context.startService(intent) diff --git a/app/src/main/java/com/itsaky/androidide/actions/file/InstallFileAction.kt b/app/src/main/java/com/itsaky/androidide/actions/file/InstallFileAction.kt index fa58d3effd..7337d95563 100644 --- a/app/src/main/java/com/itsaky/androidide/actions/file/InstallFileAction.kt +++ b/app/src/main/java/com/itsaky/androidide/actions/file/InstallFileAction.kt @@ -111,7 +111,7 @@ class InstallFileAction( }.onFailure { e -> flashError( if (e is PluginStillLoadedException) { - getString(R.string.msg_plugin_install_still_loaded, e.pluginId) + getString(R.string.msg_plugin_install_still_loaded, e.pluginId, getString(R.string.app_name)) } else { getString(R.string.msg_plugin_install_failed, e.message) }, diff --git a/app/src/main/java/com/itsaky/androidide/actions/main/DocsAction.kt b/app/src/main/java/com/itsaky/androidide/actions/main/DocsAction.kt index 349107e487..0b78bb06cf 100644 --- a/app/src/main/java/com/itsaky/androidide/actions/main/DocsAction.kt +++ b/app/src/main/java/com/itsaky/androidide/actions/main/DocsAction.kt @@ -14,39 +14,40 @@ import com.itsaky.androidide.resources.R.string import org.adfa.constants.CONTENT_KEY import org.adfa.constants.CONTENT_TITLE_KEY -class DocsAction(context: Context) : ActionItem { - - override val id: String = ID - - companion object { - const val ID = "ide.main.docs" - } - - override var label: String = context.getString(R.string.btn_docs) - override var visible: Boolean = true - override var enabled: Boolean = true - override var icon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_action_help_outlined) - override var requiresUIThread: Boolean = true - override var location: ActionItem.Location = ActionItem.Location.MAIN_SCREEN - override val order: Int = 7 - - override fun retrieveTooltipTag(isReadOnlyContext: Boolean): String = TooltipTag.MAIN_HELP - - override fun prepare(data: ActionData) { - super.prepare(data) - if (data.get(Context::class.java) == null) { - markInvisible() - } - } - - override suspend fun execAction(data: ActionData): Any { - val context = data.get(Context::class.java) ?: return false - val intent = - Intent(context, HelpActivity::class.java).apply { - putExtra(CONTENT_KEY, context.getString(string.docs_url)) - putExtra(CONTENT_TITLE_KEY, context.getString(string.back_to_cogo)) - } - context.startActivity(intent) - return true - } +class DocsAction( + context: Context, +) : ActionItem { + override val id: String = ID + + companion object { + const val ID = "ide.main.docs" + } + + override var label: String = context.getString(R.string.btn_docs) + override var visible: Boolean = true + override var enabled: Boolean = true + override var icon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_action_help_outlined) + override var requiresUIThread: Boolean = true + override var location: ActionItem.Location = ActionItem.Location.MAIN_SCREEN + override val order: Int = 7 + + override fun retrieveTooltipTag(isReadOnlyContext: Boolean): String = TooltipTag.MAIN_HELP + + override fun prepare(data: ActionData) { + super.prepare(data) + if (data.get(Context::class.java) == null) { + markInvisible() + } + } + + override suspend fun execAction(data: ActionData): Any { + val context = data.get(Context::class.java) ?: return false + val intent = + Intent(context, HelpActivity::class.java).apply { + putExtra(CONTENT_KEY, context.getString(string.docs_url)) + putExtra(CONTENT_TITLE_KEY, context.getString(string.back_to_cogo, context.getString(string.app_name))) + } + context.startActivity(intent) + return true + } } diff --git a/app/src/main/java/com/itsaky/androidide/activities/DeepLinkActivity.kt b/app/src/main/java/com/itsaky/androidide/activities/DeepLinkActivity.kt index 1d2e22308b..1c0ffdd1f4 100644 --- a/app/src/main/java/com/itsaky/androidide/activities/DeepLinkActivity.kt +++ b/app/src/main/java/com/itsaky/androidide/activities/DeepLinkActivity.kt @@ -65,7 +65,7 @@ class DeepLinkActivity : Activity() { // URI is looked at, and reordering it just to enrich a metric would put parsing ahead of // the check that exists to stop this activity acting on anything at all. analyticsManager.trackDeepLink(DeepLinkMetric(DeepLinkDepth.UNKNOWN, DeepLinkOutcome.SETUP_INCOMPLETE)) - Toast.makeText(this, getString(string.msg_deeplink_setup_incomplete), Toast.LENGTH_LONG).show() + Toast.makeText(this, getString(string.msg_deeplink_setup_incomplete, getString(string.app_name)), Toast.LENGTH_LONG).show() // FLAG_ACTIVITY_NEW_TASK, matching the success branch below. A sender that starts this // trampoline without it -- an in-app WebView host, another app's explicit intent, `am start` // -- puts this activity in the *caller's* task, and an unflagged start here would run the diff --git a/app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt b/app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt index 8046ef0e36..257ebf8e1b 100644 --- a/app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt +++ b/app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt @@ -144,6 +144,7 @@ import com.itsaky.androidide.utils.dpToPx import com.itsaky.androidide.utils.flashError import com.itsaky.androidide.utils.flashMessage import com.itsaky.androidide.utils.getOrStoreInitialPadding +import com.itsaky.androidide.utils.getStringWithAppName import com.itsaky.androidide.utils.isAtLeastR import com.itsaky.androidide.utils.isDeepLinkTargetOfOpenProject import com.itsaky.androidide.viewmodel.ApkInstallationViewModel @@ -1482,7 +1483,7 @@ abstract class BaseEditorActivity : newMaterialDialogBuilder(this) .setPositiveButton(android.R.string.ok, null) .setTitle(string.title_first_build) - .setMessage(string.msg_first_build) + .setMessage(getString(string.msg_first_build, getString(string.app_name))) .setCancelable(false) .create() .show() @@ -1879,7 +1880,7 @@ abstract class BaseEditorActivity : val indentChild = 140 fun appendHierarchicalText(textRes: Int) { - val text = getString(textRes) + val text = getStringWithAppName(textRes, getString(string.app_name)) text.split("\n").forEach { line -> val trimmed = line.trimStart() diff --git a/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt b/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt index 4563cd155f..af9602c25d 100644 --- a/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt +++ b/app/src/main/java/com/itsaky/androidide/activities/editor/ProjectHandlerActivity.kt @@ -426,7 +426,7 @@ abstract class ProjectHandlerActivity : } QuickBuildNotice.RELOAD_CRASHED -> { - flashError(getString(string.quick_build_reload_crashed)) + flashError(getString(string.quick_build_reload_crashed, getString(string.app_name))) } QuickBuildNotice.RELINK_STUCK -> { @@ -703,7 +703,7 @@ abstract class ProjectHandlerActivity : QuickBuildClobberConfirmation.NeededForUnknownAppId -> { awaitBuildTypeSwitchConfirmation( getString(string.quick_build_switch_unknown_app_title), - getString(string.quick_build_switch_unknown_app_message), + getString(string.quick_build_switch_unknown_app_message, getString(string.app_name)), ) } @@ -1073,7 +1073,7 @@ abstract class ProjectHandlerActivity : private suspend fun confirmUnknownOccupantSwitch(): Boolean = awaitBuildTypeSwitchConfirmation( getString(string.quick_build_switch_unknown_app_title), - getString(string.quick_build_switch_unknown_app_message), + getString(string.quick_build_switch_unknown_app_message, getString(string.app_name)), ) private fun projectRealApplicationId(): String? { @@ -1203,7 +1203,7 @@ abstract class ProjectHandlerActivity : }.onFailure { error -> flashError( if (error is PluginStillLoadedException) { - getString(string.msg_plugin_install_still_loaded, error.pluginId) + getString(string.msg_plugin_install_still_loaded, error.pluginId, getString(string.app_name)) } else { getString( string.msg_plugin_install_failed, @@ -2548,19 +2548,35 @@ abstract class ProjectHandlerActivity : ?: (result.cause as? SocketException?).let { err -> val msg = err?.message ?: "" when { - msg.contains("EPERM") -> getString(string.debugger_error_errno_eperm) - msg.contains("ECONNREFUSED") -> getString(string.debugger_error_errno_econnrefused) - else -> null + msg.contains("EPERM") -> { + getString(string.debugger_error_errno_eperm, getString(string.app_name)) + } + + msg.contains("ECONNREFUSED") -> { + getString(string.debugger_error_errno_econnrefused, getString(string.app_name)) + } + + else -> { + null + } } } ?: (result.cause as? ErrnoException? ?: result.cause?.cause as? ErrnoException?)?.let { err -> when (err.errno) { - OsConstants.EPERM -> getString(string.debugger_error_errno_eperm) - OsConstants.ECONNREFUSED -> getString(string.debugger_error_errno_econnrefused) - else -> getString(R.string.debugger_error_errno, err.errno) + OsConstants.EPERM -> { + getString(string.debugger_error_errno_eperm, getString(string.app_name)) + } + + OsConstants.ECONNREFUSED -> { + getString(string.debugger_error_errno_econnrefused, getString(string.app_name)) + } + + else -> { + getString(R.string.debugger_error_errno, err.errno) + } } } - ?: getString(R.string.debugger_error_debugger_startup_failure) + ?: getString(R.string.debugger_error_debugger_startup_failure, getString(R.string.app_name)) append(msg) append(System.lineSeparator()) @@ -2570,7 +2586,7 @@ abstract class ProjectHandlerActivity : append(System.lineSeparator()) } - append(getString(R.string.debugger_error_suggestion_network_restriction)) + append(getString(R.string.debugger_error_suggestion_network_restriction, getString(R.string.app_name))) } withContext(Dispatchers.Main) { diff --git a/app/src/main/java/com/itsaky/androidide/adapters/onboarding/OnboardingPermissionsAdapter.kt b/app/src/main/java/com/itsaky/androidide/adapters/onboarding/OnboardingPermissionsAdapter.kt index 3a2418731f..3613146cea 100644 --- a/app/src/main/java/com/itsaky/androidide/adapters/onboarding/OnboardingPermissionsAdapter.kt +++ b/app/src/main/java/com/itsaky/androidide/adapters/onboarding/OnboardingPermissionsAdapter.kt @@ -29,6 +29,7 @@ import com.itsaky.androidide.R import com.itsaky.androidide.databinding.LayoutOnboardingPermissionItemBinding import com.itsaky.androidide.models.OnboardingPermissionItem import com.itsaky.androidide.utils.dpToPx +import com.itsaky.androidide.utils.getStringWithAppName /** * @author Akash Yadav @@ -68,7 +69,7 @@ class OnboardingPermissionsAdapter( binding.infoContent.apply { title.setText(permission.title) - description.setText(permission.description) + description.setText(context.getStringWithAppName(permission.description, context.getString(R.string.app_name))) title.setTextColor(if (permission.isSupportedOnDevice) holder.titleColor else holder.disabledTitleColor) description.setTextColor(if (permission.isSupportedOnDevice) holder.descriptionColor else holder.disabledDescriptionColor) } diff --git a/app/src/main/java/com/itsaky/androidide/fragments/CrashReportFragment.kt b/app/src/main/java/com/itsaky/androidide/fragments/CrashReportFragment.kt index 2799800418..bf250e2ce7 100644 --- a/app/src/main/java/com/itsaky/androidide/fragments/CrashReportFragment.kt +++ b/app/src/main/java/com/itsaky/androidide/fragments/CrashReportFragment.kt @@ -39,131 +39,130 @@ import com.itsaky.androidide.utils.BasicBuildInfo import com.itsaky.androidide.utils.resolveAttr class CrashReportFragment : Fragment() { - - private var _binding: LayoutCrashReportBinding? = null - private val binding get() = _binding!! - - private var closeAppOnClick = true - - companion object { - const val KEY_CLOSE_APP_ON_CLICK = "close_on_app_click" - - @JvmStatic - fun newInstance(): CrashReportFragment { - return newInstance(true) - } - - @JvmStatic - fun newInstance( - closeAppOnClick: Boolean - ): CrashReportFragment { - val frag = CrashReportFragment() - val args = Bundle().apply { - putBoolean(KEY_CLOSE_APP_ON_CLICK, closeAppOnClick) - } - frag.arguments = args - return frag - } - } - - override fun onCreateView( - inflater: LayoutInflater, - container: ViewGroup?, - savedInstanceState: Bundle? - ): View { - _binding = LayoutCrashReportBinding.inflate(inflater, container, false) - return binding.root - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - val args = requireArguments() - closeAppOnClick = args.getBoolean(KEY_CLOSE_APP_ON_CLICK) - val title = getString(R.string.msg_ide_crashed) - - binding.apply { - crashTitle.text = title - crashSubtitle.apply { - setCrashInfoText() - } - - closeButton.setOnClickListener { - finishActivity() - } - - btnOkay.setOnClickListener { finishActivity() } - - requireActivity().onBackPressedDispatcher.addCallback( - viewLifecycleOwner, - object : OnBackPressedCallback(true) { - override fun handleOnBackPressed() { - finishActivity() - } - } - ) - - } - } - - fun TextView.setCrashInfoText() { - // Get crash message with placeholder - val supportText = context.getString(R.string.contact_support_team) - val fullText = context.getString(R.string.msg_crash_info, supportText) - val linkColor = requireContext().resolveAttr(com.itsaky.androidide.R.attr.colorOnSurface) - val spannable = SpannableString(fullText) - - // Find clickable phrase in text - val start = fullText.indexOf(supportText) - if (start != -1) { - spannable.setSpan( - object : ClickableSpan() { - override fun onClick(widget: View) { - sendEmail(context = context) - - } - - override fun updateDrawState(ds: TextPaint) { - super.updateDrawState(ds) - ds.color = linkColor - ds.isUnderlineText = true - } - }, - start, - start + supportText.length, - Spanned.SPAN_EXCLUSIVE_EXCLUSIVE - ) - } - - text = spannable - movementMethod = LinkMovementMethod.getInstance() - } - - private fun sendEmail(context: Context) { - val email = "feedback@appdevforall.org" - val subject = Uri.encode(context.getString(R.string.crash_email_subject)) - val body = Uri.encode( - context.getString( - R.string.crash_email_body, - BasicBuildInfo.formatVersion() - ) - ) - - val uri = "mailto:$email?subject=$subject&body=$body".toUri() - - val intent = Intent(Intent.ACTION_SENDTO, uri) - context.startActivity(intent) - } - - private fun finishActivity() { - if (closeAppOnClick) { - requireActivity().finishAffinity() - } else { - requireActivity().finish() - } - } - - override fun onDestroyView() { - super.onDestroyView() - _binding = null - } -} \ No newline at end of file + @Suppress("ktlint:standard:backing-property-naming") + private var _binding: LayoutCrashReportBinding? = null + private val binding get() = _binding!! + + private var closeAppOnClick = true + + companion object { + const val KEY_CLOSE_APP_ON_CLICK = "close_on_app_click" + + @JvmStatic + fun newInstance(): CrashReportFragment = newInstance(true) + + @JvmStatic + fun newInstance(closeAppOnClick: Boolean): CrashReportFragment { + val frag = CrashReportFragment() + val args = + Bundle().apply { + putBoolean(KEY_CLOSE_APP_ON_CLICK, closeAppOnClick) + } + frag.arguments = args + return frag + } + } + + override fun onCreateView( + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle?, + ): View { + _binding = LayoutCrashReportBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onViewCreated( + view: View, + savedInstanceState: Bundle?, + ) { + super.onViewCreated(view, savedInstanceState) + val args = requireArguments() + closeAppOnClick = args.getBoolean(KEY_CLOSE_APP_ON_CLICK) + val title = getString(R.string.msg_ide_crashed, getString(R.string.app_name)) + + binding.apply { + crashTitle.text = title + crashSubtitle.apply { + setCrashInfoText() + } + + closeButton.setOnClickListener { + finishActivity() + } + + btnOkay.setOnClickListener { finishActivity() } + + requireActivity().onBackPressedDispatcher.addCallback( + viewLifecycleOwner, + object : OnBackPressedCallback(true) { + override fun handleOnBackPressed() { + finishActivity() + } + }, + ) + } + } + + fun TextView.setCrashInfoText() { + // Get crash message with placeholder + val supportText = context.getString(R.string.contact_support_team) + val fullText = context.getString(R.string.msg_crash_info, supportText) + val linkColor = requireContext().resolveAttr(com.itsaky.androidide.R.attr.colorOnSurface) + val spannable = SpannableString(fullText) + + // Find clickable phrase in text + val start = fullText.indexOf(supportText) + if (start != -1) { + spannable.setSpan( + object : ClickableSpan() { + override fun onClick(widget: View) { + sendEmail(context = context) + } + + override fun updateDrawState(ds: TextPaint) { + super.updateDrawState(ds) + ds.color = linkColor + ds.isUnderlineText = true + } + }, + start, + start + supportText.length, + Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, + ) + } + + text = spannable + movementMethod = LinkMovementMethod.getInstance() + } + + private fun sendEmail(context: Context) { + val email = "feedback@appdevforall.org" + val subject = Uri.encode(context.getString(R.string.crash_email_subject)) + val body = + Uri.encode( + context.getString( + R.string.crash_email_body, + BasicBuildInfo.formatVersion(), + ), + ) + + val uri = "mailto:$email?subject=$subject&body=$body".toUri() + + val intent = Intent(Intent.ACTION_SENDTO, uri) + context.startActivity(intent) + } + + private fun finishActivity() { + if (closeAppOnClick) { + requireActivity().finishAffinity() + } else { + requireActivity().finish() + } + } + + override fun onDestroyView() { + super.onDestroyView() + _binding = null + } +} diff --git a/app/src/main/java/com/itsaky/androidide/fragments/MainFragment.kt b/app/src/main/java/com/itsaky/androidide/fragments/MainFragment.kt index 4aad4c4fb6..fea401ec58 100644 --- a/app/src/main/java/com/itsaky/androidide/fragments/MainFragment.kt +++ b/app/src/main/java/com/itsaky/androidide/fragments/MainFragment.kt @@ -7,17 +7,17 @@ import android.view.View import android.view.ViewGroup import androidx.core.view.isVisible import com.itsaky.androidide.R -import com.itsaky.androidide.utils.BasicBuildInfo -import com.itsaky.androidide.activities.editor.HelpActivity -import com.itsaky.androidide.adapters.MainActionsListAdapter import com.itsaky.androidide.actions.ActionData import com.itsaky.androidide.actions.ActionItem import com.itsaky.androidide.actions.ActionsRegistry import com.itsaky.androidide.actions.internal.DefaultActionsRegistry +import com.itsaky.androidide.activities.editor.HelpActivity +import com.itsaky.androidide.adapters.MainActionsListAdapter import com.itsaky.androidide.databinding.FragmentMainBinding import com.itsaky.androidide.dnd.handleGitUrlDrop import com.itsaky.androidide.idetooltips.TooltipManager import com.itsaky.androidide.idetooltips.TooltipTag.MAIN_GET_STARTED +import com.itsaky.androidide.utils.BasicBuildInfo import com.itsaky.androidide.viewmodel.MainViewModel import org.adfa.constants.CONTENT_KEY import org.adfa.constants.CONTENT_TITLE_KEY @@ -93,9 +93,9 @@ class MainFragment : BaseFragment() { handleGitUrlDrop( shouldAcceptDrop = { isVisible && - viewModel.currentScreen.value == MainViewModel.SCREEN_MAIN + viewModel.currentScreen.value == MainViewModel.SCREEN_MAIN }, - onDropped = viewModel::requestCloneRepository + onDropped = viewModel::requestCloneRepository, ) } @@ -103,7 +103,7 @@ class MainFragment : BaseFragment() { val intent = Intent(requireContext(), HelpActivity::class.java).apply { putExtra(CONTENT_KEY, getString(R.string.quickstart_url)) - putExtra(CONTENT_TITLE_KEY, R.string.back_to_cogo) + putExtra(CONTENT_TITLE_KEY, getString(R.string.back_to_cogo, getString(R.string.app_name))) } startActivity(intent) } @@ -115,11 +115,13 @@ class MainFragment : BaseFragment() { private fun reloadActions() { val actionData = createActionData() - val actions = registry.getActions(ActionItem.Location.MAIN_SCREEN) - .values - .onEach { it.prepare(actionData) } - .filter { it.visible } - .sortedWith(compareBy({ it.order }, { it.id })) + val actions = + registry + .getActions(ActionItem.Location.MAIN_SCREEN) + .values + .onEach { it.prepare(actionData) } + .filter { it.visible } + .sortedWith(compareBy({ it.order }, { it.id })) // Portrait: single list. Landscape: first 3 (Create, Open, Delete) in middle, last 3 (Terminal, Preferences, Docs) on right. val leftActions = if (binding!!.actionsRight != null) actions.take(3) else actions @@ -127,11 +129,10 @@ class MainFragment : BaseFragment() { binding!!.actionsRight?.adapter = MainActionsListAdapter(actions.drop(3), onClick, onLongClick) } - private fun createActionData(): ActionData { - return ActionData.create(requireActivity()).apply { + private fun createActionData(): ActionData = + ActionData.create(requireActivity()).apply { put(MainViewModel::class.java, viewModel) } - } override fun onDestroyView() { super.onDestroyView() diff --git a/app/src/main/java/com/itsaky/androidide/fragments/PackageNameChangeDialogFragment.kt b/app/src/main/java/com/itsaky/androidide/fragments/PackageNameChangeDialogFragment.kt index dff93f1961..76fac43f67 100644 --- a/app/src/main/java/com/itsaky/androidide/fragments/PackageNameChangeDialogFragment.kt +++ b/app/src/main/java/com/itsaky/androidide/fragments/PackageNameChangeDialogFragment.kt @@ -34,7 +34,7 @@ class PackageNameChangeDialogFragment : DialogFragment() { .newMaterialDialogBuilder(requireContext()) .setIcon(icon) .setTitle(R.string.package_name_change_title) - .setMessage(R.string.package_name_change_message) + .setMessage(getString(R.string.package_name_change_message, getString(R.string.app_name))) .setPositiveButton(R.string.learn_more, null) .setNegativeButton(R.string.msg_got_it) { _, _ -> GeneralPreferences.packageNameChangeNoticeDismissedAt = System.currentTimeMillis() diff --git a/app/src/main/java/com/itsaky/androidide/fragments/onboarding/PermissionsFragment.kt b/app/src/main/java/com/itsaky/androidide/fragments/onboarding/PermissionsFragment.kt index 577d77529f..ff860492fa 100644 --- a/app/src/main/java/com/itsaky/androidide/fragments/onboarding/PermissionsFragment.kt +++ b/app/src/main/java/com/itsaky/androidide/fragments/onboarding/PermissionsFragment.kt @@ -23,6 +23,7 @@ import android.content.Intent import android.net.Uri import android.os.Bundle import android.provider.Settings +import android.text.SpannableStringBuilder import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -121,7 +122,7 @@ class PermissionsFragment : ) putCharSequence( KEY_ONBOARDING_SUBTITLE, - context.getString(R.string.onboarding_subtitle_permissions), + context.getString(R.string.onboarding_subtitle_permissions, context.getString(R.string.app_name)), ) } } @@ -216,7 +217,7 @@ class PermissionsFragment : is InstallationState.InstallationComplete -> { finishButton?.text = getString(R.string.finish_installation) - activity?.flashSuccess(getString(R.string.ide_setup_complete)) + activity?.flashSuccess(getString(R.string.ide_setup_complete, getString(R.string.app_name))) } is InstallationState.InstallationError -> { @@ -437,6 +438,18 @@ class PermissionsFragment : // layout refers to (body text style, preferred padding) resolve. val binding = LayoutDialogPrivacyConsentBinding.inflate(LayoutInflater.from(builder.context)) + // getText keeps the spans that getString would strip, so fill the app name in by hand. + val appName = getString(com.itsaky.androidide.resources.R.string.app_name) + val privacyMessage = + SpannableStringBuilder(getText(com.itsaky.androidide.resources.R.string.privacy_disclosure_message)) + val appNameToken = "%1\$s" + var tokenAt = privacyMessage.indexOf(appNameToken) + while (tokenAt >= 0) { + privacyMessage.replace(tokenAt, tokenAt + appNameToken.length, appName) + tokenAt = privacyMessage.indexOf(appNameToken, tokenAt + appName.length) + } + binding.privacyMessage.text = privacyMessage + val dialog = builder .setTitle(com.itsaky.androidide.resources.R.string.privacy_disclosure_title) diff --git a/app/src/main/java/com/itsaky/androidide/services/builder/GradleBuildService.kt b/app/src/main/java/com/itsaky/androidide/services/builder/GradleBuildService.kt index 88452a86ad..a484b72e09 100644 --- a/app/src/main/java/com/itsaky/androidide/services/builder/GradleBuildService.kt +++ b/app/src/main/java/com/itsaky/androidide/services/builder/GradleBuildService.kt @@ -393,7 +393,7 @@ class GradleBuildService : val buildNotificationChannel = NotificationChannel( BaseApplication.NOTIFICATION_GRADLE_BUILD_SERVICE, - getString(R.string.title_gradle_service_notification_channel), + getString(R.string.title_gradle_service_notification_channel, getString(R.string.app_name)), NotificationManager.IMPORTANCE_LOW, ) NotificationManagerCompat diff --git a/app/src/main/java/com/itsaky/androidide/services/debug/DebugOverlayManager.kt b/app/src/main/java/com/itsaky/androidide/services/debug/DebugOverlayManager.kt index 42652f598a..f0f3ea7e5c 100644 --- a/app/src/main/java/com/itsaky/androidide/services/debug/DebugOverlayManager.kt +++ b/app/src/main/java/com/itsaky/androidide/services/debug/DebugOverlayManager.kt @@ -3,6 +3,7 @@ package com.itsaky.androidide.services.debug import android.content.Context import android.graphics.PixelFormat import android.hardware.display.DisplayManager +import android.provider.Settings import android.view.ContextThemeWrapper import android.view.Gravity import android.view.LayoutInflater @@ -10,7 +11,6 @@ import android.view.MotionEvent import android.view.ViewConfiguration import android.view.WindowManager import android.widget.Toast -import android.provider.Settings import androidx.core.content.ContextCompat import androidx.core.hardware.display.DisplayManagerCompat import com.itsaky.androidide.R @@ -68,7 +68,9 @@ class DebugOverlayManager private constructor( overlayLayoutParams.y = initialWindowY + deltaY windowManager.updateViewLayout(binding.root, overlayLayoutParams) true - } else false + } else { + false + } } MotionEvent.ACTION_UP -> { @@ -86,7 +88,9 @@ class DebugOverlayManager private constructor( false } - else -> false + else -> { + false + } } } @@ -94,7 +98,7 @@ class DebugOverlayManager private constructor( TooltipManager.showIdeCategoryTooltip( context = view.context, anchorView = view.rootView, - tag = TooltipTag.DEBUGGER_ACTION_MOVE + tag = TooltipTag.DEBUGGER_ACTION_MOVE, ) true } @@ -102,15 +106,21 @@ class DebugOverlayManager private constructor( private var isShown = false private val overlayLayoutParams by lazy { - WindowManager.LayoutParams( - /* w = */ WindowManager.LayoutParams.WRAP_CONTENT, - /* h = */ WindowManager.LayoutParams.WRAP_CONTENT, - /* _type = */ WM_OVERLAY_TYPE, - /* _flags = */ WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, - /* _format = */ PixelFormat.TRANSLUCENT - ).apply { - gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL - } + WindowManager + .LayoutParams( + // w = + WindowManager.LayoutParams.WRAP_CONTENT, + // h = + WindowManager.LayoutParams.WRAP_CONTENT, + // _type = + WM_OVERLAY_TYPE, + // _flags = + WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, + // _format = + PixelFormat.TRANSLUCENT, + ).apply { + gravity = Gravity.TOP or Gravity.CENTER_HORIZONTAL + } } fun show() { @@ -124,11 +134,12 @@ class DebugOverlayManager private constructor( logger.warn("Overlay permission denied. Skipping debugger overlay window.") val state = PermissionsHelper.getOverlayPermissionState(ctx) - val message = if (state == PermissionsHelper.OverlayPermissionState.UNSUPPORTED) { - ctx.getString(R.string.permission_overlay_unsupported_hint) - } else { - ctx.getString(R.string.permission_overlay_restricted_settings_hint) - } + val message = + if (state == PermissionsHelper.OverlayPermissionState.UNSUPPORTED) { + ctx.getString(R.string.permission_overlay_unsupported_hint) + } else { + ctx.getString(R.string.permission_overlay_restricted_settings_hint, ctx.getString(R.string.app_name)) + } Toast.makeText(ctx, message, Toast.LENGTH_LONG).show() return } @@ -161,7 +172,6 @@ class DebugOverlayManager private constructor( } companion object { - private val logger = LoggerFactory.getLogger(DebugOverlayManager::class.java) private const val WM_OVERLAY_TYPE = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY @@ -170,23 +180,29 @@ class DebugOverlayManager private constructor( * @param ctx The [Context] to use for creating the [DebugOverlayManager]. * @return A new [DebugOverlayManager]. */ - fun create(ctx: Context, displayId: Int = -1): DebugOverlayManager { - val windowContext = run { - if (displayId == -1) { - logger.debug("no display id provided. overlay will be shown on default display") - return@run ctx - } + fun create( + ctx: Context, + displayId: Int = -1, + ): DebugOverlayManager { + val windowContext = + run { + if (displayId == -1) { + logger.debug("no display id provided. overlay will be shown on default display") + return@run ctx + } - logger.debug("trying to get window context for displayId={}", displayId) - val displayManager = DisplayManagerCompat.getInstance(ctx) - val targetDisplay = displayManager.getDisplay(displayId) - val displayContext = - if (targetDisplay != null) ctx.createDisplayContext(targetDisplay) else ctx + logger.debug("trying to get window context for displayId={}", displayId) + val displayManager = DisplayManagerCompat.getInstance(ctx) + val targetDisplay = displayManager.getDisplay(displayId) + val displayContext = + if (targetDisplay != null) ctx.createDisplayContext(targetDisplay) else ctx - if (isAtLeastR()) { - displayContext.createWindowContext(WM_OVERLAY_TYPE, null) - } else displayContext - } + if (isAtLeastR()) { + displayContext.createWindowContext(WM_OVERLAY_TYPE, null) + } else { + displayContext + } + } // IMPORTANT! // Wrap the context with a theme, so we could use MaterialButtons! @@ -212,4 +228,4 @@ class DebugOverlayManager private constructor( ) } } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/itsaky/androidide/ui/compose/plugins/PluginManagerContent.kt b/app/src/main/java/com/itsaky/androidide/ui/compose/plugins/PluginManagerContent.kt index ca3fc657b4..0be93da659 100644 --- a/app/src/main/java/com/itsaky/androidide/ui/compose/plugins/PluginManagerContent.kt +++ b/app/src/main/java/com/itsaky/androidide/ui/compose/plugins/PluginManagerContent.kt @@ -133,7 +133,13 @@ fun PluginManagerContent( viewModel.uiEffect.collect { effect -> when (effect) { is PluginManagerUiEffect.ShowError -> { - val message = activity.getString(effect.messageResId, *effect.formatArgs.toTypedArray()) + val args = + if (effect.withAppName) { + effect.formatArgs + activity.getString(R.string.app_name) + } else { + effect.formatArgs + } + val message = activity.getString(effect.messageResId, *args.toTypedArray()) val builder = activity .flashbarBuilder(duration = if (effect.formatArgs.isEmpty()) 5000L else DURATION_INDEFINITE) diff --git a/app/src/main/java/com/itsaky/androidide/ui/models/PluginManagerUiState.kt b/app/src/main/java/com/itsaky/androidide/ui/models/PluginManagerUiState.kt index 011e370949..fdfd931b27 100644 --- a/app/src/main/java/com/itsaky/androidide/ui/models/PluginManagerUiState.kt +++ b/app/src/main/java/com/itsaky/androidide/ui/models/PluginManagerUiState.kt @@ -105,6 +105,8 @@ sealed class PluginManagerUiEffect { data class ShowError( @param:StringRes @get:StringRes val messageResId: Int, val formatArgs: List = emptyList(), + // The message also takes the app name, after formatArgs (ADFA-7237); the view model has no resources. + val withAppName: Boolean = false, ) : PluginManagerUiEffect() data class ShowSuccess( diff --git a/app/src/main/java/com/itsaky/androidide/utils/OverlayPermissionGuide.kt b/app/src/main/java/com/itsaky/androidide/utils/OverlayPermissionGuide.kt index 16d2378035..63b0fefc52 100644 --- a/app/src/main/java/com/itsaky/androidide/utils/OverlayPermissionGuide.kt +++ b/app/src/main/java/com/itsaky/androidide/utils/OverlayPermissionGuide.kt @@ -7,18 +7,24 @@ import android.content.Intent import android.net.Uri import android.provider.Settings import android.text.SpannableStringBuilder +import android.text.TextUtils import com.itsaky.androidide.resources.R import org.slf4j.LoggerFactory object OverlayPermissionGuide { - private val log = LoggerFactory.getLogger(OverlayPermissionGuide::class.java) fun showRestrictedSettingsDialog(context: Context) { val message = SpannableStringBuilder() - message.append(context.getString(R.string.permission_overlay_restricted_dialog_message)) + val appName = context.getString(R.string.app_name) + message.append(context.getString(R.string.permission_overlay_restricted_dialog_message, appName)) message.append("\n\n") - message.appendOrderedList(*context.resources.getStringArray(R.array.overlay_restricted_settings_steps)) + message.appendOrderedList( + *context.resources + .getStringArray(R.array.overlay_restricted_settings_steps) + .map { it.format(TextUtils.htmlEncode(appName)) } + .toTypedArray(), + ) DialogUtils .newMaterialDialogBuilder(context) @@ -27,16 +33,16 @@ object OverlayPermissionGuide { .setPositiveButton(R.string.permission_overlay_open_app_info) { dialog, _ -> dialog.dismiss() openAppInfo(context) - } - .setNegativeButton(android.R.string.cancel, null) + }.setNegativeButton(android.R.string.cancel, null) .show() } private fun openAppInfo(context: Context) { - val intent = Intent( - Settings.ACTION_APPLICATION_DETAILS_SETTINGS, - Uri.fromParts("package", context.packageName, null), - ) + val intent = + Intent( + Settings.ACTION_APPLICATION_DETAILS_SETTINGS, + Uri.fromParts("package", context.packageName, null), + ) if (context !is Activity) { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) } diff --git a/app/src/main/java/com/itsaky/androidide/viewmodels/PluginManagerViewModel.kt b/app/src/main/java/com/itsaky/androidide/viewmodels/PluginManagerViewModel.kt index 3e02e104b0..62ce9e2e86 100644 --- a/app/src/main/java/com/itsaky/androidide/viewmodels/PluginManagerViewModel.kt +++ b/app/src/main/java/com/itsaky/androidide/viewmodels/PluginManagerViewModel.kt @@ -423,7 +423,11 @@ class PluginManagerViewModel( Log.e(TAG, "Failed to install plugin", exception) _uiEffect.send( if (exception is PluginStillLoadedException) { - PluginManagerUiEffect.ShowError(R.string.msg_plugin_install_still_loaded, listOf(exception.pluginId)) + PluginManagerUiEffect.ShowError( + R.string.msg_plugin_install_still_loaded, + listOf(exception.pluginId), + withAppName = true, + ) } else { PluginManagerUiEffect.ShowError( R.string.msg_plugin_install_failed, diff --git a/app/src/main/res/layout-land/fragment_onboarding.xml b/app/src/main/res/layout-land/fragment_onboarding.xml index b31c41c4d4..6fff6d1f88 100644 --- a/app/src/main/res/layout-land/fragment_onboarding.xml +++ b/app/src/main/res/layout-land/fragment_onboarding.xml @@ -1,89 +1,80 @@ - + - + - + - + - + - + - + - + - + - + - \ No newline at end of file + diff --git a/app/src/main/res/layout/layout_dialog_privacy_consent.xml b/app/src/main/res/layout/layout_dialog_privacy_consent.xml index 6cdf16e6c4..8219d2b0db 100644 --- a/app/src/main/res/layout/layout_dialog_privacy_consent.xml +++ b/app/src/main/res/layout/layout_dialog_privacy_consent.xml @@ -22,8 +22,7 @@ android:layout_height="wrap_content" android:paddingStart="?attr/dialogPreferredPadding" android:paddingEnd="?attr/dialogPreferredPadding" - android:paddingBottom="24dp" - android:text="@string/privacy_disclosure_message" /> + android:paddingBottom="24dp" /> by lazy { + resDir + .listFiles { f -> f.isDirectory && f.name.startsWith("values") }!! + .map { File(it, "strings.xml") } + .filter { it.isFile } + .sortedBy { it.parentFile.name } + } + + private val defaultFile: File get() = File(resDir, "values/strings.xml") + + private class Entry( + val key: String, + val text: String, + ) + + /** `` values, plus every `` of a ``, keyed `array[index]`. */ + private fun entries(file: File): List { + val doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file) + val out = mutableListOf() + val strings = doc.getElementsByTagName("string") + for (i in 0 until strings.length) { + val el = strings.item(i) as Element + out += Entry(el.getAttribute("name"), el.textContent) + } + val arrays = doc.getElementsByTagName("string-array") + for (i in 0 until arrays.length) { + val array = arrays.item(i) as Element + val items = array.getElementsByTagName("item") + for (j in 0 until items.length) { + out += Entry("${array.getAttribute("name")}[$j]", items.item(j).textContent) + } + } + return out + } + + @Test + fun `no string spells out the app name unless it is on a list`() { + val offenders = mutableListOf() + for (file in stringFiles) { + for (entry in entries(file)) { + if (entry.key == "app_name" || entry.key in KEEP_LITERAL) continue + if (entry.text.contains(APP_NAME, ignoreCase = true)) { + offenders += "${file.parentFile.name}/${entry.key}" + } + } + } + assertThat(offenders).isEmpty() + } + + @Test + fun `every parameterised string takes the app name at its position in the default`() { + val defaults = entries(defaultFile).associate { it.key to it.text } + for ((key, position) in NAME_POSITION) { + val text = defaults[key] ?: error("values/strings.xml has no $key") + assertThat(positions(text)).contains("${position}s") + } + } + + @Test + fun `a locale never uses a placeholder the default lacks`() { + val defaults = entries(defaultFile).associate { it.key to positions(it.text) } + val bad = mutableListOf() + for (file in stringFiles) { + for (entry in entries(file)) { + if (entry.key !in NAME_POSITION) continue + val inDefault = defaults[entry.key] ?: continue + val here = positions(entry.text) + // A translation may leave the name out; it may not invent or move an argument. + if (!inDefault.containsAll(here)) bad += "${file.parentFile.name}/${entry.key}" + // Mixed numbered and unnumbered arguments make the numbering ambiguous. + if (BARE_ARGUMENT.containsMatchIn(entry.text)) bad += "${file.parentFile.name}/${entry.key} (bare argument)" + } + } + assertThat(bad).isEmpty() + } + + @Test + fun `a string array is formatted item by item so its items hold no stray percent sign`() { + val bad = mutableListOf() + for (file in stringFiles) { + for (entry in entries(file)) { + val array = entry.key.substringBefore('[') + if (array !in FORMATTED_ARRAYS) continue + val withoutArgument = entry.text.replace("%1\$s", "") + if (withoutArgument.contains('%')) bad += "${file.parentFile.name}/${entry.key}" + } + } + assertThat(bad).isEmpty() + } + + /** Each numbered argument as index plus conversion, so `%1$s` and `%1$d` differ. */ + private fun positions(text: String): Set = + NUMBERED_ARGUMENT + .findAll(text) + .map { it.groupValues[1] + it.groupValues[2] } + .toSet() + + private companion object { + const val APP_NAME = "code on the go" + + val NUMBERED_ARGUMENT = Regex("%(\\d+)\\$([a-zA-Z])") + val BARE_ARGUMENT = Regex("%[sd]") + + /** + * Protected: legal or attribution text, or text that names the upstream product rather + * than this app. + */ + val PROTECTED = + setOf( + // Credit line written into Git commits; must keep naming Code on the Go. + "made_with_code_on_the_go", + // Describes that credit line. + "idepref_git_add_commit_watermark_summary", + // Sends the user to the upstream product's download page. + "download_codeonthego_message", + // Invites people to contribute to the upstream open-source project. + "summary_contribute", + ) + + /** Referenced from XML (the manifest), which cannot pass a format argument. */ + val LEFT_LITERAL_XML = + setOf( + // AndroidManifest.xml android:description of the logger permission. + "permdesc_bind_logger_service", + ) + + val KEEP_LITERAL = PROTECTED + LEFT_LITERAL_XML + + val FORMATTED_ARRAYS = setOf("overlay_restricted_settings_steps", "debugger_setup_pairing_steps") + + /** Strings changed by ADFA-7237 and the position the app name takes in each. */ + val NAME_POSITION = + mapOf( + "about_footer_alternate" to 2, + "msg_plugin_install_still_loaded" to 2, + "package_name_change_message" to 1, + "about_footer" to 3, + "msg_need_help" to 1, + "msg_unsupported_device" to 3, + "msg_first_build" to 1, + "msg_deeplink_setup_incomplete" to 1, + "idepref_about_title" to 1, + "msg_open_projects" to 1, + "msg_confirm_project_open" to 1, + "msg_ide_crashed" to 1, + "msg_help_hint" to 1, + "msg_long_press_help" to 1, + "idepref_about_summary" to 1, + "title_gradle_service_notification_channel" to 1, + "idepref_general_themeSelector_summary" to 1, + "privacy_disclosure_message" to 1, + "idepref_devOptions_summary" to 1, + "idepref_devOptions_dumpLogs_summary" to 1, + "idepref_devOptions_enableLogsender_summary" to 1, + "msg_experimental_flavor" to 3, + "idepref_general_localeSelector_summary" to 1, + "permission_desc_storage" to 1, + "permission_desc_install_packages" to 1, + "permission_desc_overlay_window" to 1, + "permission_overlay_restricted_settings_hint" to 1, + "permission_overlay_restricted_dialog_message" to 1, + "permission_desc_notifications" to 1, + "permission_desc_accessibility" to 1, + "onboarding_subtitle_permissions" to 1, + "ide_setup_complete" to 1, + "debugger_error_errno_eperm" to 1, + "debugger_error_errno_econnrefused" to 1, + "debugger_error_debugger_startup_failure" to 1, + "debugger_error_suggestion_network_restriction" to 1, + "feedback_email_subject" to 1, + "quick_build_switch_unknown_app_message" to 1, + "quick_build_reload_crashed" to 1, + "notification_adb_pairing_succeed_text" to 1, + "adb_pairing_tutorial_content_notification" to 2, + "err_foreground_service_denial" to 1, + "debugger_setup_description_footer" to 1, + "back_to_cogo" to 1, + "url_consent_message" to 2, + ) + } +} diff --git a/common/src/main/java/com/itsaky/androidide/utils/ContextUtils.kt b/common/src/main/java/com/itsaky/androidide/utils/ContextUtils.kt index 5ce3d0a095..1eed1379cb 100644 --- a/common/src/main/java/com/itsaky/androidide/utils/ContextUtils.kt +++ b/common/src/main/java/com/itsaky/androidide/utils/ContextUtils.kt @@ -35,6 +35,7 @@ import android.net.NetworkCapabilities import android.os.Build import android.provider.Settings import android.util.TypedValue +import androidx.annotation.StringRes import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import org.slf4j.LoggerFactory @@ -106,6 +107,18 @@ fun Context.dpToPx(dp: Float): Int = (dp * resources.displayMetrics.density + 0. */ fun Context.spToPx(sp: Float): Int = (sp * resources.displayMetrics.scaledDensity + 0.5f).toInt() +/** + * Returns the string [id], formatted with [appName] only if it takes the app name (`%1$s`). Any other + * string is returned as is, so a literal `%` in it cannot crash the formatter. + */ +fun Context.getStringWithAppName( + @StringRes id: Int, + appName: String, +): String { + val raw = getString(id) + return if (raw.contains("%1\$s")) getString(id, appName) else raw +} + /** * Copies [text] to the system clipboard, under the given [label]. */ diff --git a/common/src/main/java/com/itsaky/androidide/utils/FeedbackManager.kt b/common/src/main/java/com/itsaky/androidide/utils/FeedbackManager.kt index cd492ab4d5..7485934525 100644 --- a/common/src/main/java/com/itsaky/androidide/utils/FeedbackManager.kt +++ b/common/src/main/java/com/itsaky/androidide/utils/FeedbackManager.kt @@ -83,8 +83,8 @@ object FeedbackManager { }.setPositiveButton(R.string.send_email) { dialog, _ -> val intent = Intent(Intent.ACTION_SENDTO).apply { - data = - "mailto:$EMAIL_SUPPORT?subject=${context.getString(R.string.feedback_email_subject)}".toUri() + val subject = context.getString(R.string.feedback_email_subject, context.getString(R.string.app_name)) + data = "mailto:$EMAIL_SUPPORT?subject=${Uri.encode(subject)}".toUri() } context.startActivity(intent) dialog.dismiss() diff --git a/common/src/main/java/com/itsaky/androidide/utils/urlManager.kt b/common/src/main/java/com/itsaky/androidide/utils/urlManager.kt index 7a3f375cde..1a164f9969 100644 --- a/common/src/main/java/com/itsaky/androidide/utils/urlManager.kt +++ b/common/src/main/java/com/itsaky/androidide/utils/urlManager.kt @@ -31,7 +31,7 @@ object UrlManager { private fun showConsentDialog(url: String, pkg: String?, context: Activity) { DialogUtils.newMaterialDialogBuilder(context) .setTitle(R.string.url_consent_title) - .setMessage(context.getString(R.string.url_consent_message, url)) + .setMessage(context.getString(R.string.url_consent_message, url, context.getString(R.string.app_name))) .setPositiveButton(R.string.url_consent_proceed) { dialog, _ -> dialog.dismiss() openUrlInternal(url, pkg, context) diff --git a/idetooltips/src/main/java/com/itsaky/androidide/idetooltips/ToolTipManager.kt b/idetooltips/src/main/java/com/itsaky/androidide/idetooltips/ToolTipManager.kt index 88f105fb2e..37a72bf1d5 100644 --- a/idetooltips/src/main/java/com/itsaky/androidide/idetooltips/ToolTipManager.kt +++ b/idetooltips/src/main/java/com/itsaky/androidide/idetooltips/ToolTipManager.kt @@ -174,7 +174,7 @@ object TooltipManager { tooltipItem = IDETooltipItem(-1, -1, category, tag, "", "", arrayListOf(), ""), requestFocus = requestFocus, onHelpLinkClicked = { context, url, _ -> - HelpActivity.launch(context, url, context.getString(ResR.string.back_to_cogo)) + HelpActivity.launch(context, url, context.getString(ResR.string.back_to_cogo, context.getString(ResR.string.app_name))) } ) } diff --git a/preferences/src/main/java/com/itsaky/androidide/preferences/BasePreference.kt b/preferences/src/main/java/com/itsaky/androidide/preferences/BasePreference.kt index c5a6c38a0f..f5f919d61d 100644 --- a/preferences/src/main/java/com/itsaky/androidide/preferences/BasePreference.kt +++ b/preferences/src/main/java/com/itsaky/androidide/preferences/BasePreference.kt @@ -22,6 +22,7 @@ import android.graphics.PorterDuff.Mode.SRC_ATOP import android.graphics.PorterDuffColorFilter import androidx.core.content.ContextCompat import androidx.preference.Preference +import com.itsaky.androidide.utils.getStringWithAppName import com.itsaky.androidide.utils.resolveAttr /** @@ -30,34 +31,33 @@ import com.itsaky.androidide.utils.resolveAttr * @author Akash Yadav */ abstract class BasePreference : IPreference() { - - abstract fun onCreatePreference(context: Context): Preference - - override fun onCreateView(context: Context): Preference { - val pref = onCreatePreference(context) - pref.key = this.key - pref.title = context.getString(this.title) - this.summary?.let { pref.summary = context.getString(it) } - - pref.isIconSpaceReserved = this.icon != null - this.icon?.let { - pref.icon = - ContextCompat.getDrawable(context, it)?.apply { - colorFilter = - PorterDuffColorFilter(context.resolveAttr(R.attr.colorOnPrimaryContainer), SRC_ATOP) - } - } - - pref.setOnPreferenceClickListener { onPreferenceClick(pref) } - pref.setOnPreferenceChangeListener(this::onPreferenceChanged) - return pref - } - - protected open fun onPreferenceChanged(preference: Preference, newValue: Any?): Boolean { - return false - } - - protected open fun onPreferenceClick(preference: Preference): Boolean { - return false - } + abstract fun onCreatePreference(context: Context): Preference + + override fun onCreateView(context: Context): Preference { + val pref = onCreatePreference(context) + pref.key = this.key + val appName = context.getString(R.string.app_name) + pref.title = context.getStringWithAppName(this.title, appName) + this.summary?.let { pref.summary = context.getStringWithAppName(it, appName) } + + pref.isIconSpaceReserved = this.icon != null + this.icon?.let { + pref.icon = + ContextCompat.getDrawable(context, it)?.apply { + colorFilter = + PorterDuffColorFilter(context.resolveAttr(R.attr.colorOnPrimaryContainer), SRC_ATOP) + } + } + + pref.setOnPreferenceClickListener { onPreferenceClick(pref) } + pref.setOnPreferenceChangeListener(this::onPreferenceChanged) + return pref + } + + protected open fun onPreferenceChanged( + preference: Preference, + newValue: Any?, + ): Boolean = false + + protected open fun onPreferenceClick(preference: Preference): Boolean = false } diff --git a/resources/src/main/res/values-ar-rSA/strings.xml b/resources/src/main/res/values-ar-rSA/strings.xml index bf57f8a41f..038218eb65 100644 --- a/resources/src/main/res/values-ar-rSA/strings.xml +++ b/resources/src/main/res/values-ar-rSA/strings.xml @@ -6,10 +6,10 @@ البحث عن نص البريد الإلكتروني الموقع الإلكتروني - أندرويد %1$s لـ %2$s + %3$s %1$s لـ %2$s ببساطة، منصة بناء تطبيقات للاندرويد فشل في استخراج اسم الحزمة! - إذا كنت تواجه مشكلات أثناء استخدام Code on the Go أو مع بناء التطبيقات ، يمكنك الانضمام إلى مجموعة التيليغرام وطلب المساعدة هناك.\n\nيمكنك أيضًا إرسال ملاحظات متضمنة على بريدنا الإلكتروني. + إذا كنت تواجه مشكلات أثناء استخدام %1$s أو مع بناء التطبيقات ، يمكنك الانضمام إلى مجموعة التيليغرام وطلب المساعدة هناك.\n\nيمكنك أيضًا إرسال ملاحظات متضمنة على بريدنا الإلكتروني. تحتاج للمساعدة؟ إعدادات IDE المناقشات على التيليغرام @@ -40,7 +40,7 @@ رجاءا انتظر لحظة… هذا الجهاز غير مدعوم - أنت تستخدم نسخة %1$s من Code on the Go على جهاز يعمل فقط بـ %2$s. هذه التكوينات غير معتمدة. يرجى تثبيت نسخة %2$s من Code on the Go. + أنت تستخدم نسخة %1$s من %3$s على جهاز يعمل فقط بـ %2$s. هذه التكوينات غير معتمدة. يرجى تثبيت نسخة %2$s من %3$s. مسح المخرجات مخرجات البناء تشغيل سريع @@ -51,7 +51,7 @@ تشغيل إعداد مشروعك الجديد - Code on the Go يقوم بإعداد ملفات ومجلدات مشروعك الجديد. يرجى التحلي بالصبر!\n\nعندما ينتهي الإعداد، سيتم عرض \"تم تهيئة المشروع\" في أسفل الشاشة. + %1$s يقوم بإعداد ملفات ومجلدات مشروعك الجديد. يرجى التحلي بالصبر!\n\nعندما ينتهي الإعداد، سيتم عرض \"تم تهيئة المشروع\" في أسفل الشاشة. إنشاء مشروع الحد الأدنى من SDK مشروع جديد @@ -140,7 +140,7 @@ إعادة حجم خط المحرر - حول Code on the Go + حول %1$s مسح جميع ذاكرة التخزين المؤقت مسح دليل ذاكرة التخزين المؤقت. سيؤدي هذا إلى حذف جميع التبعيات التي تم تحميلها بواسطة Gradle. سيتم تحميل الملفات المطلوبة مرة أخرى في النسخة التالية. أوامر Gradle الإضافية @@ -176,7 +176,7 @@ فشل في إنشاء كود XML إنشاء كود XML مرر لأعلى للإخراج والسجلات والمزيد. - تحطم Code on the Go + تحطم %1$s الرجاء فتح مشكلة على github مع المكونات التالية: انقر على الزر أدناه لنسخ السجل وفتح صفحة المشكلات. الترجمات @@ -243,7 +243,7 @@ اشترك للحصول على أحدث تحديثات. مناقشة الميزات، الأخطاء والتحسينات هنا. ما الجديد في هذا الإصدار؟ - المزيد عن Code on the Go. + المزيد عن %1$s. إعدادات IDE العامة. تهيئة المحرر. تقليم السطر الجديد النهائي @@ -282,7 +282,7 @@ في حالة التمكين، سيتم استخدام الملف الموجود على \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" كخط محرر. تثبيت APK... هل تريد فتح التطبيق؟ - خدمة بناء Code on the Go + خدمة بناء %1$s رمز اللون Hex انتقاء إعداد أذونات قابلة للتنفيذ… @@ -347,7 +347,7 @@ مظلم اتبع النظام سمة - اختر سمة لـ Code on the Go (تتطلب إعادة التشغيل). + اختر سمة لـ %1$s (تتطلب إعادة التشغيل). تهيئة المشروع يجب عليك بناء وتثبيت التطبيق قبل أن تتمكن من تشغيله. التشخيصات مفعلة @@ -387,10 +387,10 @@ اصدار الاندرويد الاشتراك خيارات المطور - خيارات تجريبية/تصحيح أخطاء Code on the Go + خيارات تجريبية/تصحيح أخطاء %1$s تصحيح الأخطاء تفريغ السجلات - تفريغ سجلات Code on the Go إلى $HOME/.cg/logs + تفريغ سجلات %1$s إلى $HOME/.cg/logs قم بتشغيل النسخة التصحيحية (debug) من تطبيقك لعرض السجلات هنا. تم تعطيل إرسال السجل. يمكنك تمكينه في الخيارات. تظهر سجلات من بيئة التطوير المتكاملة هنا. @@ -398,7 +398,7 @@ "قم ببناء التطبيق أو تشغيل مهمة لرؤية نتائج بنائه هنا. " فشلت في تنفيذ الإجراء. تمكين مرسل السجلات. - عند التعطيل، لن يتم عرض سجلات التطبيقات في Code on the Go. + عند التعطيل، لن يتم عرض سجلات التطبيقات في %1$s. Build variants Apply Discard @@ -416,14 +416,14 @@ Cannot run application. No application modules found in project. Launch app Experimental - You are using %1$s variant of Code on the Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Whether the editor should pin line number panel when scrolled horizontally. Blue Wave Sunny Glow Material You Language - Select a language for Code on the Go. + Select a language for %1$s. System Default Project directory is not accessible Selected file is not a directory @@ -437,10 +437,10 @@ Grant Storage Required to access project files. - Allow installing APKs built with Code on the Go. + Allow installing APKs built with %1$s. Install packages Permissions - Code on the Go requires the following permissions + %1$s requires the following permissions Please grant the permissions to continue. It seems you\'re offline. Check your internet connection. Heads up! You\'re using cellular data. diff --git a/resources/src/main/res/values-bn-rIN/strings.xml b/resources/src/main/res/values-bn-rIN/strings.xml index 07b8872619..b0d0160963 100644 --- a/resources/src/main/res/values-bn-rIN/strings.xml +++ b/resources/src/main/res/values-bn-rIN/strings.xml @@ -6,10 +6,10 @@ অনুসন্ধান করার জন্য পাঠ্য ইমেল ওয়েবসাইট - %2$s এর জন্য Code on the Go %1$s + %2$s এর জন্য %3$s %1$s সহজভাবে, Android এর জন্য একটি IDE প্যাকেজের নাম বের করতে ব্যর্থ! - আপনি যদি Code on the Go ব্যবহার করার সময় বা অ্যান্ড্রয়েড অ্যাপস তৈরি করার সময় সমস্যার সম্মুখীন হন, তাহলে আপনি টেলিগ্রাম গ্রুপে যোগ দিতে পারেন সেখানে সাহায্য চাইতে পারেন।\n\nআপনি আমাদের ইমেলে পরামর্শও পাঠাতে পারেন। + আপনি যদি %1$s ব্যবহার করার সময় বা অ্যান্ড্রয়েড অ্যাপস তৈরি করার সময় সমস্যার সম্মুখীন হন, তাহলে আপনি টেলিগ্রাম গ্রুপে যোগ দিতে পারেন সেখানে সাহায্য চাইতে পারেন।\n\nআপনি আমাদের ইমেলে পরামর্শও পাঠাতে পারেন। সাহায্য প্রয়োজন? IDE-এর পছন্দ টেলিগ্রামে আলোচনা @@ -40,7 +40,7 @@ অনুগ্রহ করে কিছুক্ষণ অপেক্ষা করুন… ডিভাইস সমর্থিত নয় - আপনি শুধুমাত্র %2$s ডিভাইসে Code on the Go-এর %1$s ভেরিয়েন্ট ব্যবহার করছেন। এই কনফিগারেশন সমর্থিত নয়. অনুগ্রহ করে Code on the Go-এর %2$s ভেরিয়েন্ট ইনস্টল করুন। + আপনি শুধুমাত্র %2$s ডিভাইসে %3$s-এর %1$s ভেরিয়েন্ট ব্যবহার করছেন। এই কনফিগারেশন সমর্থিত নয়. অনুগ্রহ করে %3$s-এর %2$s ভেরিয়েন্ট ইনস্টল করুন। আউটপুট পরিস্কার করুন বিল্ড আউটপুট দ্রুত চালান @@ -51,7 +51,7 @@ চালান আপনার নতুন প্রকল্প সেট আপ হচ্ছে - Code on the Go আপনার নতুন প্রকল্পের ফাইল এবং ডিরেক্টরিগুলি সেট আপ করছে। অনুগ্রহ করে ধৈর্য ধরুন!\n\nসেটআপ সম্পন্ন হলে, স্ক্রিনের নিচে প\"্রকল্প শুরু করা হয়েছে\" প্রদর্শিত হবে। + %1$s আপনার নতুন প্রকল্পের ফাইল এবং ডিরেক্টরিগুলি সেট আপ করছে। অনুগ্রহ করে ধৈর্য ধরুন!\n\nসেটআপ সম্পন্ন হলে, স্ক্রিনের নিচে প\"্রকল্প শুরু করা হয়েছে\" প্রদর্শিত হবে। প্রকল্প তৈরি করুন সর্বনিম্ন SDK নতুন প্রকল্প @@ -141,7 +141,7 @@ রিডু এডিটর ফন্ট সাইজ - Code on the Go সম্পর্কে + %1$s সম্পর্কে Gradle ক্যাশে সাফ করুন Gradle ক্যাশে ডিরেক্টরি সাফ করুন। এটি Gradle দ্বারা ডাউনলোড করা সমস্ত নির্ভরতা মুছে ফেলবে। পরবর্তী বিল্ডে প্রয়োজনীয় ফাইলগুলি আবার ডাউনলোড করা হবে৷ অতিরিক্ত গ্রেডেল কমান্ড @@ -176,7 +176,7 @@ XML কোড তৈরি করতে ব্যর্থ XML কোড তৈরি করা হচ্ছে বিল্ড আউটপুট, লগ এবং আরও অনেক কিছুর জন্য উপরে সোয়াইপ করুন। - Code on the Go ক্র্যাশ হয়েছে + %1$s ক্র্যাশ হয়েছে অনুগ্রহ করে গিটহাবে নিম্নলিখিত স্ট্যাকট্রেস সহ একটি সমস্যা খুলুন : লগ কপি করতে এবং সমস্যা পৃষ্ঠা খুলতে নীচের বোতামে ক্লিক করুন৷ অনুবাদ @@ -243,7 +243,7 @@ সাম্প্রতিক আপডেটের জন্য সাবস্ক্রাইব করুন। এখানে বৈশিষ্ট্য, বাগ এবং উন্নতি নিয়ে আলোচনা করুন৷ এই সংস্করণে নতুন কি আছে? - Code on the Go সম্পর্কে আরো কিছু। + %1$s সম্পর্কে আরো কিছু। সাধারণ IDE কনফিগারেশন। সম্পাদক কনফিগার করুন৷ চূড়ান্ত নতুন লাইন বাদ দিন @@ -282,7 +282,7 @@ সক্রিয় থাকলে, \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" ফাইলটিকে এডিটর-এর ফন্ট হিসেবে ব্যবহার করা হবে। APK ইনস্টল করা হচ্ছে... তুমি কি অ্যাপ্লিকেশনটি খুলতে চাও? - Code on the Go Gradle build পরিষেবা + %1$s Gradle build পরিষেবা হেক্স কালার কোড বেছে নিন নির্বাহযোগ্য অনুমতি গুলি সেট করা হচ্ছে… @@ -347,7 +347,7 @@ ডার্ক সিস্টেম কে অনুসরন করুন থিম - Code on the Go এর জন্য একটি থিম নির্বাচন করুন (Restart প্রয়োজন)। + %1$s এর জন্য একটি থিম নির্বাচন করুন (Restart প্রয়োজন)। প্রকল্প কনফিগারেশন আপনাকে অ্যাপটি চালু করার আগে এটি বিল্ড এবং ইনস্টল করতে হবে। Diagnostics সক্রিয় @@ -387,10 +387,10 @@ অ্যান্ড্রয়েড ভার্সন বাছাই করুন বিকাশকারী অপশনগুলি - Code on the Go-এর জন্য পরীক্ষামূলক/ডিবাগিং অপশনগুলি + %1$s-এর জন্য পরীক্ষামূলক/ডিবাগিং অপশনগুলি ডিবাগিং ডাম্প লগ - Code on the Go লগ ডাম্প করুন $HOME/.cg/logs এ + %1$s লগ ডাম্প করুন $HOME/.cg/logs এ এখানে লগগুলি দেখার জন্য আপনার অ্যাপ্লিকেশনটির ডিবাগ ভ্যারিয়েন্ট টি রান করুন৷ LogSender নিষ্ক্রিয় করা হয়েছে। আপনি Preferences-এ গিয়ে এটিকে সক্রিয় করতে পারেন। IDE লগস্ এখানে দেখানো হয়. @@ -398,7 +398,7 @@ "এখানে বিল্ড আউটপুট দেখতে অ্যাপ্লিকেশনটি তৈরি করুন বা একটি টাস্ক চালান। " কোড ক্রিয়া সম্পাদন করতে ব্যর্থ হয়েছে৷ LogSender সক্রিয় করুন - নিষ্ক্রিয় করা হলে, অ্যাপ্লিকেশান থেকে লগগুলি Code on the Go-এ দেখানো হবে না৷ + নিষ্ক্রিয় করা হলে, অ্যাপ্লিকেশান থেকে লগগুলি %1$s-এ দেখানো হবে না৷ বিল্ড ভ্যারিয়েন্ট প্রয়োগ করুন খারিজ করুন @@ -416,14 +416,14 @@ অ্যাপ্লিকেশন চালানো যাবে না। প্রকল্পে কোনো অ্যাপ্লিকেশন মডিউল পাওয়া যায়নি। অ্যাপ্লিকেশন চালু করুন পরীক্ষামূলক - আপনি একটি %2$s ডিভাইসে Code on the Go-এর %1$s ভেরিয়েন্ট ব্যবহার করছেন। এই কনফিগারেশন কাজ করতে পারে, কিন্তু এর ফলে কর্মক্ষমতা কমে যাবে এবং সম্ভাব্য নিরাপত্তা সমস্যা দেখা দেবে। যখনই সম্ভব এই কনফিগারেশন ব্যবহার করা এড়িয়ে চলুন। + আপনি একটি %2$s ডিভাইসে %3$s-এর %1$s ভেরিয়েন্ট ব্যবহার করছেন। এই কনফিগারেশন কাজ করতে পারে, কিন্তু এর ফলে কর্মক্ষমতা কমে যাবে এবং সম্ভাব্য নিরাপত্তা সমস্যা দেখা দেবে। যখনই সম্ভব এই কনফিগারেশন ব্যবহার করা এড়িয়ে চলুন। লাইন নম্বর পিন করে রাখুন অনুভূমিকভাবে স্ক্রোল করার সময় এডিটর-এর লাইন নম্বর প্যানেল পিন করা উচিত কিনা। নীল তরঙ্গ সানি গ্লো মেটেরিয়াল ইউ ভাষা - Code on the Go-এর জন্য একটি ভাষা নির্বাচন করুন।. + %1$s-এর জন্য একটি ভাষা নির্বাচন করুন।. সিস্টেমের ডিফল্ট প্রকল্প ডিরেক্টরি প্রবেশযোগ্য নয় নির্বাচিত ফাইলটি একটি ডিরেক্টরি নয় @@ -437,10 +437,10 @@ প্রদান করুন স্টোরেজ প্রজেক্ট ফাইলে কাজ করার জন্য প্রয়োজনীয়। - Code on the Go দিয়ে তৈরি অ্যাপ ইনস্টল করার অনুমতি দিন। + %1$s দিয়ে তৈরি অ্যাপ ইনস্টল করার অনুমতি দিন। প্যাকেজ ইনস্টল করুন অনুমতি - Code on the Go-এর নিম্নলিখিত অনুমতিগুলির প্রয়োজন৷ + %1$s-এর নিম্নলিখিত অনুমতিগুলির প্রয়োজন৷ এগিয়ে যাওয়ার জন্য অনুগ্রহ করে অনুমতি দিন। মনে হচ্ছে আপনি অফলাইনে আছেন। আপনার ইন্টারনেট সংযোগ পরীক্ষা করুন। সতর্ক হোন! আপনি সেলুলার ডেটা ব্যবহার করছেন। diff --git a/resources/src/main/res/values-de-rDE/strings.xml b/resources/src/main/res/values-de-rDE/strings.xml index 16924a01ce..e6f91ef23c 100644 --- a/resources/src/main/res/values-de-rDE/strings.xml +++ b/resources/src/main/res/values-de-rDE/strings.xml @@ -6,10 +6,10 @@ Zu suchender Text E-Mail Internetseite - Code on the Go %1$s für %2$s + %3$s %1$s für %2$s Die IDE für Android Geräte Fehler beim Extrahieren des Paketnamens! - Wenn Sie bei der Verwendung von Code on the Go oder beim Erstellen von Android-Apps auf Probleme stoßen, können Sie unserer Telegram-Gruppe beitreten und dort um Hilfe bitten.\n\nSie können uns auch Vorschläge per E-Mail senden. + Wenn Sie bei der Verwendung von %1$s oder beim Erstellen von Android-Apps auf Probleme stoßen, können Sie unserer Telegram-Gruppe beitreten und dort um Hilfe bitten.\n\nSie können uns auch Vorschläge per E-Mail senden. Brauchen Sie Hilfe? IDE-Einstellungen Auf Telegram diskutieren @@ -40,7 +40,7 @@ Bitte warten Sie einen Moment … Dein Gerät wird nicht unterstützt - You are using %1$s variant of Code on the Go on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of Code on the Go. + You are using %1$s variant of %3$s on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of %3$s. Ausgabe säubern Build-Ausgabe Schnelldurchlauf @@ -51,7 +51,7 @@ Ausführen Einrichtung Ihres neuen Projekts - Code on the Go richtet die Dateien und Verzeichnisse Ihres neuen Projekts ein. Bitte haben Sie etwas Geduld!\n\nSobald die Einrichtung abgeschlossen ist, wird unten auf dem Bildschirm Projekt initialisiert angezeigt. + %1$s richtet die Dateien und Verzeichnisse Ihres neuen Projekts ein. Bitte haben Sie etwas Geduld!\n\nSobald die Einrichtung abgeschlossen ist, wird unten auf dem Bildschirm Projekt initialisiert angezeigt. Projekt erstellen Mindest SDK Neues Projekt @@ -140,7 +140,7 @@ Wiederholen Editor Schriftgröße - Über Code on the Go + Über %1$s Gradle-Caches löschen Löschen Sie das Gradle-Cache-Verzeichnis. Dadurch werden alle von Gradle heruntergeladenen Dateien gelöscht. Erforderliche Dateien werden im nächsten Build erneut heruntergeladen. Zusätzliche Gradle-Befehle @@ -175,7 +175,7 @@ XML-Code konnte nicht generiert werden Generieren von XML-Code Wischen Sie nach oben, um Build Ausgaben, Logs und mehr anzuzeigen. - Code on the Go ist abgestürzt + %1$s ist abgestürzt Bitte öffnen Sie ein Issue auf GitHub mit dem folgenden Stacktrace: Klicken Sie auf die Schaltfläche unten, um den Log zu kopieren und die Problemseite zu öffnen. Übersetzungen @@ -242,7 +242,7 @@ Abonnieren sie für die neuesten Updates. Diskutieren Sie hier über Features, Bugs und Verbesserungen. Was ist neu in der Version? - Mehr über Code on the Go. + Mehr über %1$s. Allgemeine IDE-Konfiguration. Konfiguriere den Editor. Letzte Zeile löschen @@ -281,7 +281,7 @@ Wenn aktiviert, wird die Datei unter \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" als Editor Schriftart verwendet. Installiere APK... Möchtest du die Applikation öffnen? - Code on the Go Gradle-Build-Service + %1$s Gradle-Build-Service Hex Farbcode Auswählen Ausführbare Berechtigungen festlegen… @@ -346,7 +346,7 @@ Dunkel Vom System übernehmen Erscheinungsbild - Wählen Sie ein Theme für Code on the Go aus (erfordert Neustart). + Wählen Sie ein Theme für %1$s aus (erfordert Neustart). Projektkonfiguration Launch failed. Install the application first. Diagnostik aktiviert @@ -386,10 +386,10 @@ Android Version Einwilligen Entwickleroptionen - Experimentelle/Debugging Optionen für Code on the Go + Experimentelle/Debugging Optionen für %1$s Debugging Protokolle ausgeben - Code on the Go-Logs in $HOME/.cg/logs ausgeben + %1$s-Logs in $HOME/.cg/logs ausgeben Run the debug variant of your application to view its logs here. LogSender is disabled. You can enable it in preferences. Protokolle der IDE werden hier angezeigt. @@ -397,7 +397,7 @@ "Build the application or run a task to see its build output here. " Fehler beim Ausführen der Aktion LogSender aktivieren - When disabled, logs from applications won\'t be shown in Code on the Go + When disabled, logs from applications won\'t be shown in %1$s Build Varianten Übernehmen Verwerfen @@ -415,14 +415,14 @@ Anwendung kann nicht ausgeführt werden. Keine Anwendungsmodule im Projekt gefunden. App starten Experimentell - You are using %1$s variant of Code on the Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Whether the editor should pin line number panel when scrolled horizontally. Blue Wave Sunny Glow Material You Sprache - Wähle eine Sprache für Code on the Go aus. + Wähle eine Sprache für %1$s aus. Systemstandard Projektverzeichnis ist nicht erreichbar Ausgewählte Datei ist kein Verzeichnis @@ -436,10 +436,10 @@ Gewähren Speicherplatz Erforderlich um auf Projektdateien zuzugreifen. - Ermöglicht die Installation von APKs, die mit Code on the Go erstellt wurden. + Ermöglicht die Installation von APKs, die mit %1$s erstellt wurden. Pakete installieren Berechtigungen - Code on the Go benötigt folgende Berechtigungen + %1$s benötigt folgende Berechtigungen Bitte erteile die Berechtigung, um fortzufahren. Es sieht so aus, als wären sie offline. Überprüfen Sie Ihre Internetverbindung. Achtung! Du benutzt mobile Daten. diff --git a/resources/src/main/res/values-es-rES/strings.xml b/resources/src/main/res/values-es-rES/strings.xml index 331407c9e0..31b6aa110a 100644 --- a/resources/src/main/res/values-es-rES/strings.xml +++ b/resources/src/main/res/values-es-rES/strings.xml @@ -6,10 +6,10 @@ Text to search Correo Web - Android IDE %1$s para %2$s + %3$s %1$s para %2$s Simplemente un IDE para Android ¡Error al extraer el nombre del paquete! - Si estás enfrentando problemas durante el uso de Android IDE o con la creación de aplicaciones Android, puedes unirte al grupo en Telegram para pedir ayuda.\n\nTambién puedes enviar sugerencias a nuestro correo electrónico. + Si estás enfrentando problemas durante el uso de %1$s o con la creación de aplicaciones Android, puedes unirte al grupo en Telegram para pedir ayuda.\n\nTambién puedes enviar sugerencias a nuestro correo electrónico. ¿Necesitas Ayuda? Configuración Debates en Telegram @@ -40,7 +40,7 @@ Por favor, espere un momento… Device Not Supported - You are using %1$s variant of Code on the Go on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of Code on the Go. + You are using %1$s variant of %3$s on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of %3$s. Limpiar salida Salida de Compilación Ejecutar rápidamente @@ -51,7 +51,7 @@ Run Puesta en marcha de tu nuevo proyecto - Code on the Go está configurando los archivos y directorios de tu nuevo proyecto. Por favor, ten paciencia!\n\nCuando finalice la configuración, aparecerá \"Proyecto inicializado\" en la parte inferior de la pantalla. + %1$s está configurando los archivos y directorios de tu nuevo proyecto. Por favor, ten paciencia!\n\nCuando finalice la configuración, aparecerá \"Proyecto inicializado\" en la parte inferior de la pantalla. Crear proyecto SDK mínimo Nuevo proyecto @@ -140,7 +140,7 @@ Rehacer Tamaño de fuente del editor - Acerca de Code on the Go + Acerca de %1$s Limpiar caches de Gradle Borrar el directorio de cachés de Gradle. Esto eliminará todas las dependencias descargadas por Gradle. Los archivos requeridos se descargarán de nuevo en la próxima compilación. Banderas adicionales de Gradle @@ -176,7 +176,7 @@ Error al generar código XML Generando código XML Desliza hacia arriba para construir salida, registros y más. - Code on the Go falló + %1$s falló Por favor, abra un problema en github con el siguiente seguimiento: Haga clic en el botón de abajo para copiar registro y abrir la página de incidencias. Traducciones @@ -243,7 +243,7 @@ Suscríbete para las últimas actualizaciones. Discuta las funcionalidades, bugs y mejoras aquí. ¿Qué hay de nuevo? - Más sobre Code on the Go. + Más sobre %1$s. Configuración general Configurar el editor. Recortar la nueva línea final @@ -282,7 +282,7 @@ Si está habilitado, el archivo en\"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" se utilizará como fuente del editor. Instalando APK... ¿Quieres abrir la aplicación? - Servicio de compilación de Gradle de Code on the Go + Servicio de compilación de Gradle de %1$s Código de color HEX Elegir Configurando permisos ejecutables… @@ -347,7 +347,7 @@ Oscuro Según el sistema Theme - Select a theme for Code on the Go (requires restart). + Select a theme for %1$s (requires restart). Project configuration Debes compilar e instalar la aplicación antes de poder iniciarla. Diagnósticos habilitados @@ -387,10 +387,10 @@ Versión de Android Opt-in Developer options - Experimental/debugging options for Code on the Go + Experimental/debugging options for %1$s Debugging Dump logs - Dump Code on the Go logs to $HOME/.cg/logs + Dump %1$s logs to $HOME/.cg/logs Run the debug variant of your application to view its logs here. LogSender is disabled. You can enable it in preferences. Logs from the IDE are shown here. @@ -398,7 +398,7 @@ "Build the application or run a task to see its build output here. " Failed to perform code action Enable LogSender - When disabled, logs from applications won\'t be shown in Code on the Go + When disabled, logs from applications won\'t be shown in %1$s Build variants Apply Discard @@ -416,14 +416,14 @@ Cannot run application. No application modules found in project. Launch app Experimental - You are using %1$s variant of Code on the Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Whether the editor should pin line number panel when scrolled horizontally. Blue Wave Sunny Glow Material You Language - Select a language for Code on the Go. + Select a language for %1$s. System Default Project directory is not accessible Selected file is not a directory @@ -437,10 +437,10 @@ Grant Storage Required to access project files. - Allow installing APKs built with Code on the Go. + Allow installing APKs built with %1$s. Install packages Permissions - Code on the Go requires the following permissions + %1$s requires the following permissions Please grant the permissions to continue. It seems you\'re offline. Check your internet connection. Heads up! You\'re using cellular data. diff --git a/resources/src/main/res/values-fr-rFR/strings.xml b/resources/src/main/res/values-fr-rFR/strings.xml index 99af69c9fc..6460ad2030 100644 --- a/resources/src/main/res/values-fr-rFR/strings.xml +++ b/resources/src/main/res/values-fr-rFR/strings.xml @@ -6,10 +6,10 @@ Texte à chercher Émail Site Web - Code on the Go %1$s pour %2$s + %3$s %1$s pour %2$s Simplement, un IDE pour Android Impossible d\'extraire le nom du package ! - Si vous rencontrez des problémes lorsque vous utilisez Code on the Go (ex: pendant la compilation d\'une application), vous pouvez demandez de l\'aide sur le groupe Telegram (Anglais).\n\nVous pouvez également demander de l\'aide sur notre émail. + Si vous rencontrez des problémes lorsque vous utilisez %1$s (ex: pendant la compilation d\'une application), vous pouvez demandez de l\'aide sur le groupe Telegram (Anglais).\n\nVous pouvez également demander de l\'aide sur notre émail. Besoin d\'aide ? Préférences de l\'IDE Discuter sur Telegram (anglais) @@ -40,7 +40,7 @@ Veuillez patientez un moment… Appareil non supporté - Vous utilisez la variante %1$s d\'AndroidIde sur un appareil %2$s seulement. Cette configuration n\'est pas prise en charge. Veuillez installer la variante %2$s d\'AndroidIde. + Vous utilisez la variante %1$s de %3$s sur un appareil %2$s seulement. Cette configuration n\'est pas prise en charge. Veuillez installer la variante %2$s de %3$s. Nettoyer la console Console Compilation rapide @@ -51,7 +51,7 @@ Compiler Configuration de votre nouveau projet - Code on the Go configure les fichiers et répertoires de votre nouveau projet. Veuillez patienter!\n\nUne fois la configuration terminée, \"Projet initialisé\" sera affiché en bas de l\'écran. + %1$s configure les fichiers et répertoires de votre nouveau projet. Veuillez patienter!\n\nUne fois la configuration terminée, \"Projet initialisé\" sera affiché en bas de l\'écran. Créer un projet SDK minimum Nouveau project @@ -141,7 +141,7 @@ Dernier projet ouvert : \n%s refaire Taille des caractères - À propos de Code on the Go + À propos de %1$s Nettoyer le cache de Gradle Nettoyer le cache des dossiers de Gradle. Cela supprimera toutes les dépendances téléchargées Gradle. les fichiers nécessaires seront retélechargées à la prochaine compilation. Drapeaux Gradle supplémentaires @@ -177,7 +177,7 @@ Dernier projet ouvert : \n%s Impossible de générer le code XML Génération du code XML Balayez vers le haut pour accéder au contenue de la console, des logs et autres. - Code on the Go a crashé + %1$s a crashé Merci d\'ouvrir une nouvelle Issue sur Gitub avec l\'erreur ci-dessous (anglais): Cliquez sur le bouton ci dessous pour copier les logs et une ouvrir la page des issues. Traductions @@ -244,7 +244,7 @@ Dernier projet ouvert : \n%s Subscribe for latest updates. Discuss featues, bugs and improvements here. What\'s new in this version? - More about Code on the Go. + More about %1$s. Préférences principales (mode sombre, terminal) Configurer l\'éditeur (tailles des caractères, thème, ...) Trim final new line @@ -283,7 +283,7 @@ Dernier projet ouvert : \n%s Si activé le font : \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" sera utilisé comme font d\'éditeur par défaut. Installation de l\'application... Voulez-vous ouvrir l\'application ? - Gradle Build Service d\'Code on the Go + Gradle Build Service d\'%1$s Code de couleur Hex Prendre Définition des permissions exécutables… @@ -348,7 +348,7 @@ Dernier projet ouvert : \n%s Sombre Follow system Thème - Sélectionner un thème pour Code on the Go (redémarrage de l\'application nécessaire). + Sélectionner un thème pour %1$s (redémarrage de l\'application nécessaire). Project configuration Vous devez compiler et installer lapplication avant de pouvoir la lancer. Diagnostics enabled @@ -388,10 +388,10 @@ Dernier projet ouvert : \n%s Version d\'Android S\'inscrire Options développeur - Options Expérimental/Débogage d\'Code on the Go + Options Expérimental/Débogage d\'%1$s Débogage Vider les logs - Dump Code on the Go logs to $HOME/.cg/logs + Dump %1$s logs to $HOME/.cg/logs Run the debug variant of your application to view its logs here. LogSender is disabled. You can enable it in preferences. Logs from the IDE are shown here. @@ -399,7 +399,7 @@ Dernier projet ouvert : \n%s "Build the application or run a task to see its build output here. " Failed to perform code action Enable LogSender - When disabled, logs from applications won\'t be shown in Code on the Go + When disabled, logs from applications won\'t be shown in %1$s Build variants Apply Discard @@ -417,14 +417,14 @@ Dernier projet ouvert : \n%s Cannot run application. No application modules found in project. Launch app Experimental - You are using %1$s variant of Code on the Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Whether the editor should pin line number panel when scrolled horizontally. Blue Wave Sunny Glow Material You Language - Select a language for Code on the Go. + Select a language for %1$s. System Default Project directory is not accessible Selected file is not a directory @@ -438,10 +438,10 @@ Dernier projet ouvert : \n%s Grant Storage Required to access project files. - Allow installing APKs built with Code on the Go. + Allow installing APKs built with %1$s. Install packages Permissions - Code on the Go requires the following permissions + %1$s requires the following permissions Please grant the permissions to continue. It seems you\'re offline. Check your internet connection. Heads up! You\'re using cellular data. diff --git a/resources/src/main/res/values-hi-rIN/strings.xml b/resources/src/main/res/values-hi-rIN/strings.xml index 6be230a2bc..7d1adc38f8 100644 --- a/resources/src/main/res/values-hi-rIN/strings.xml +++ b/resources/src/main/res/values-hi-rIN/strings.xml @@ -6,10 +6,10 @@ खोजने के लिए पाठ ईमेल वेबसाइट - %2$s के लिए Code on the Go %1$s + %2$s के लिए %3$s %1$s बस, एक आईडीई एंड्रॉयड के लिए पैकेज का नाम निकालने में विफल रहे ! - यदि आपको Code on the Go का उपयोग करते समय या Android ऐप्स बनाते समय समस्याओं का सामना करना पड़ रहा है, तो आप टेलीग्राम समूह में शामिल हो सकते हैं और वहां सहायता मांग सकते हैं।\n\nआप हमारे ईमेल पर भी सुझाव भेज सकते हैं। + यदि आपको %1$s का उपयोग करते समय या Android ऐप्स बनाते समय समस्याओं का सामना करना पड़ रहा है, तो आप टेलीग्राम समूह में शामिल हो सकते हैं और वहां सहायता मांग सकते हैं।\n\nआप हमारे ईमेल पर भी सुझाव भेज सकते हैं। मदद की ज़रूरत है? IDE प्रेफरेंसेस टेलीग्राम पर चर्चाएं @@ -37,7 +37,7 @@ कृपया कुछ क्षण प्रतीक्षा करें… डिवाइस समर्थित नहीं है - आप %2$s डिवाइस पर Code on the Go के %1$s संस्करण का उपयोग कर रहे हैं। यह कॉन्फ़िगरेशन समर्थित नहीं है. कृपया Code on the Go का %2$s संस्करण इंस्टॉल करें। + आप %2$s डिवाइस पर %3$s के %1$s संस्करण का उपयोग कर रहे हैं। यह कॉन्फ़िगरेशन समर्थित नहीं है. कृपया %3$s का %2$s संस्करण इंस्टॉल करें। आउटपुट हटाएँ बिल्ड आउटपुट क्विक रन @@ -48,7 +48,7 @@ रन नए प्रोजेक्ट की सेटअप हो रही है - Code on the Go आपके नए प्रोजेक्ट की फ़ाइलें और डायरेक्टरीज़ सेट कर रहा है। कृपया धैर्य रखें!\n\nसेटअप पूरा होने पर, स्क्रीन के नीचे \"प्रोजेक्ट इनिटियलाइज्ड\" प्रदर्शित होगा। + %1$s आपके नए प्रोजेक्ट की फ़ाइलें और डायरेक्टरीज़ सेट कर रहा है। कृपया धैर्य रखें!\n\nसेटअप पूरा होने पर, स्क्रीन के नीचे \"प्रोजेक्ट इनिटियलाइज्ड\" प्रदर्शित होगा। प्रोजेक्ट बनाएं न्यूनतम SDK नया प्रोजेक्ट @@ -139,7 +139,7 @@ रीडू एडिटर के फ़ॉन्ट का आकार - Code on the Go के बारे में + %1$s के बारे में क्लियर ग्रेडल कैश ग्रेडल कैश डायरेक्ट्री साफ़ करें। यह ग्रेडल द्वारा डाउनलोड की गई सभी डिपेंडेंसीज को हटा देगा। आवश्यक फ़ाइलें अगले निर्माण में फिर से डाउनलोड की जाएंगी। अतिरिक्त Gradle फ्लैग्स @@ -175,7 +175,7 @@ XML कोड जनरेट करने में विफल XML कोड जनरेट किया जा रहा है बिल्ड आउटपुट, लॉग आदि के लिए ऊपर की ओर स्वाइप करें। - Code on the Go क्रैश हो गया + %1$s क्रैश हो गया कृपया निम्नलिखित स्टैकट्रेस के साथ गिटहब पर एक मुद्दा खोलें : लॉग कॉपी करने के लिए नीचे दिए गए बटन पर क्लिक करें और मुद्दों का पेज खोलें। अनुवाद @@ -242,7 +242,7 @@ नवीनतम अपडेट के लिए सदस्यता लें | सुविधाओं, बगों और सुधारों पर यहां चर्चा करें। इस वर्शन में क्या नया है? - Code on the Go के बारे में अधिक | + %1$s के बारे में अधिक | सामान्य IDE कॉन्फ़िगरेशन | एडिटर को कॉन्फ़िगर करें। अंतिम नई लाइन ट्रिम करें @@ -281,7 +281,7 @@ सक्षम होने पर, \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" पर मौजूद फ़ाइल का उपयोग एडिटर फ़ॉन्ट के रूप में किया जाएगा। APK इंस्टॉल हो रहा है... क्या आप एप्लिकेशन खोलना चाहते हैं? - Code on the Go ग्रेडल बिल्ड सर्विस + %1$s ग्रेडल बिल्ड सर्विस हेक्स कलर कोड चुने एक्सेक्यूटबले अनुमति सेट कर रहा है… @@ -346,7 +346,7 @@ डार्क सिस्टम का पालन करें थीम - Code on the Go के लिए एक थीम चुनें (बदले जाने पर पुनः आरंभ करने की आवश्यकता है)। + %1$s के लिए एक थीम चुनें (बदले जाने पर पुनः आरंभ करने की आवश्यकता है)। प्रोजेक्ट कॉन्फ़िगरेशन एप्लिकेशन को लॉन्च करने से पहले आपको इसे बिल्ड और इंस्टॉल करना होगा। Java सोर्स कोड विश्लेषण सक्षम करें @@ -386,10 +386,10 @@ Android वर्शन चयन करें डेवलपर विकल्प - Code on the Go के लिए प्रायोगिक/डिबगिंग विकल्प + %1$s के लिए प्रायोगिक/डिबगिंग विकल्प डिबगिंग लॉग डंप करें - Code on the Go लॉग को $HOME/.cg/logs डायरेक्टरी में डंप करें + %1$s लॉग को $HOME/.cg/logs डायरेक्टरी में डंप करें अपने एप्लिकेशन के लॉग यहां देखने के लिए उसका डिबग संस्करण चलाएँ। लॉगसेंडर अक्षम है. आप इसे प्रेफरेन्सेस में सक्षम कर सकते हैं. आईडीई के लॉग यहां दिखाए जाते हैं। @@ -397,7 +397,7 @@ "यहां बिल्ड आउटपुट देखने के लिए एप्लिकेशन बनाएं या कोई कार्य चलाएं।" कोड कार्रवाई करने में विफल LogSender सक्षम करें - अक्षम होने पर, एप्लिकेशन के लॉग Code on the Go में नहीं दिखाए जाएंगे + अक्षम होने पर, एप्लिकेशन के लॉग %1$s में नहीं दिखाए जाएंगे बिल्ड वैरिएंट्स लागू करें रद्द करें @@ -415,14 +415,14 @@ एप्लिकेशन नहीं चला सकते. प्रोजेक्ट में कोई एप्लिकेशन मॉड्यूल नहीं मिला. ऐप को लांच करें प्रयोगात्मक - आप %2$s डिवाइस पर Code on the Go के %1$s संस्करण का उपयोग कर रहे हैं। यह कॉन्फ़िगरेशन काम कर सकता है, लेकिन इसके परिणामस्वरूप प्रदर्शन में कमी आएगी और संभावित सुरक्षा कमजोरियाँ होंगी। कृपया जब भी संभव हो इस कॉन्फ़िगरेशन का उपयोग करने से बचें। + आप %2$s डिवाइस पर %3$s के %1$s संस्करण का उपयोग कर रहे हैं। यह कॉन्फ़िगरेशन काम कर सकता है, लेकिन इसके परिणामस्वरूप प्रदर्शन में कमी आएगी और संभावित सुरक्षा कमजोरियाँ होंगी। कृपया जब भी संभव हो इस कॉन्फ़िगरेशन का उपयोग करने से बचें। पिन लाइन नंबर क्या एडिटर को क्षैतिज रूप से स्क्रॉल करने पर लाइन नंबर पैनल को पिन करना चाहिए? ब्लू वेव सनी ग्लो मेटीरियल यू भाषा - Code on the Go के लिए एक भाषा चुनें. + %1$s के लिए एक भाषा चुनें. सिस्टम निर्धारित प्रोजेक्ट डायरेक्टरी पहुंच योग्य नहीं है चुनी गई फ़ाइल एक डायरेक्टरी नहीं है! @@ -436,10 +436,10 @@ अनुमति दें स्टोरेज प्रोजेक्ट फ़ाइलों को पढ़ने और लिखने के लिए आवश्यक है. - Code on the Go के साथ निर्मित ऐप्स इंस्टॉल करने की अनुमति दें। + %1$s के साथ निर्मित ऐप्स इंस्टॉल करने की अनुमति दें। पैकेज इनस्टॉल करने की अनुमति अनुमति - Code on the Go को निम्नलिखित अनुमतियों की आवश्यकता है + %1$s को निम्नलिखित अनुमतियों की आवश्यकता है कृपया जारी रखने के लिए अनुमतियाँ प्रदान करें। आप ऑफ़लाइन हैं। अपने इंटरनेट कनेक्शन की जांच करें। ध्यान दें! आप सेल्युलर डेटा का उपयोग कर रहे हैं. diff --git a/resources/src/main/res/values-in-rID/strings.xml b/resources/src/main/res/values-in-rID/strings.xml index 79dff4cc8e..61390392c2 100644 --- a/resources/src/main/res/values-in-rID/strings.xml +++ b/resources/src/main/res/values-in-rID/strings.xml @@ -9,10 +9,10 @@ Situs web YouTube Bilibili - Code on the Go %1$s untuk %2$s + %3$s %1$s untuk %2$s Tidak punya komputer? Tidak ada internet? Tidak masalah. Koding aplikasi di mana saja. Gagal mengekstrak nama paket. - Jika Anda mengalami masalah saat menggunakan Code on the Go atau dalam mengembangkan aplikasi Android, Anda dapat bergabung dengan forum Diskusi kami dan meminta bantuan di sana.\n\nAnda juga dapat mengirimkan saran melalui email kami. + Jika Anda mengalami masalah saat menggunakan %1$s atau dalam mengembangkan aplikasi Android, Anda dapat bergabung dengan forum Diskusi kami dan meminta bantuan di sana.\n\nAnda juga dapat mengirimkan saran melalui email kami. Unduh Code on the Go dari situs web resmi untuk mendapatkan fitur dan pembaruan terbaru. URL tidak valid. Tidak ditemukan browser untuk menangani permintaan ini. @@ -115,7 +115,7 @@ Perangkat ini tidak didukung - Anda menggunakan varian %1$s dari Code on the Go pada perangkat yang hanya mendukung %2$s. Konfigurasi ini tidak didukung. Silakan instal varian %2$s dari Code on the Go. + Anda menggunakan varian %1$s dari %3$s pada perangkat yang hanya mendukung %2$s. Konfigurasi ini tidak didukung. Silakan instal varian %2$s dari %3$s. Hapus output Output Build Jalankan cepat @@ -132,7 +132,7 @@ Menyiapkan proyek Anda - Code on the Go sedang menginisialisasi proyek Anda. Harap tunggu!\n\nSetelah penyiapan selesai, pesan \"Proyek berhasil diinisialisasi\" akan muncul di bagian bawah layar. + %1$s sedang menginisialisasi proyek Anda. Harap tunggu!\n\nSetelah penyiapan selesai, pesan \"Proyek berhasil diinisialisasi\" akan muncul di bagian bawah layar. Buat proyek Minimum SDK Proyek baru @@ -144,7 +144,7 @@ Tutup proyek ini Proyek terakhir yang dibuka tidak ada. Tautan ini tidak dapat dibuka. - Selesaikan penyiapan Code on the Go, lalu buka tautan ini lagi. + Selesaikan penyiapan %1$s, lalu buka tautan ini lagi. Tidak ditemukan proyek bernama \"%s\". File \"%s\" tidak ditemukan dalam proyek. File \"%1$s\" tidak ditemukan di proyek \"%2$s\". @@ -358,7 +358,7 @@ Ukuran font editor - Tentang Code on the Go + Tentang %1$s Hapus cache Gradle Hapus direktori cache Gradle. Ini akan menghapus semua dependensi yang diunduh oleh Gradle. File yang diperlukan akan diunduh kembali pada build berikutnya. Flag Gradle tambahan @@ -374,9 +374,9 @@ Editor Build & Jalankan Buka proyek terakhir - Jika diaktifkan, saat Code on the Go dijalankan ulang, proyek terakhir yang dibuka akan otomatis dibuka kembali. + Jika diaktifkan, saat %1$s dijalankan ulang, proyek terakhir yang dibuka akan otomatis dibuka kembali. Konfirmasi pembukaan proyek - Jika diaktifkan, Code on the Go akan meminta konfirmasi sebelum membuka proyek terakhir. + Jika diaktifkan, %1$s akan meminta konfirmasi sebelum membuka proyek terakhir. Terjadi kesalahan saat membuka proyek. Umum Ukuran tab @@ -410,7 +410,7 @@ Tidak dapat membuat tampilan root (root view). XML kosong atau tidak memiliki elemen tingkat atas yang valid. - Code on the Go mengalami crash + %1$s mengalami crash Ada kesalahan internal.\n\nDetail untuk membantu kami memperbaiki masalah telah disimpan dan akan dikirim secara aman saat perangkat Anda kembali online.\n\nSaat Anda menekan OK, aplikasi akan ditutup dan perubahan yang belum @@ -489,8 +489,8 @@ Jika diaktifkan, editor akan menganggap spasi kosong sebagai batas antar kata. Untuk melihat struktur file dan opsi proyek, geser dari kiri ke kanan atau ketuk ikon menu di pojok kiri atas. Untuk melihat log, diagnostik, dan lainnya, geser ke atas atau ketuk bagian bawah halaman. - Untuk melihat bantuan di Code on the Go, tekan dan tahan apa saja untuk menampilkan keterangan (tooltip). Di editor, pilih dan tekan lama pada teks untuk menampilkan bilah alat (toolbar) pengeditan dan tombol bantuan. - Untuk melihat bantuan di Code on the Go, tekan dan tahan apa saja untuk menampilkan keterangan (tooltip). Di editor, pilih dan tekan lama pada teks untuk menampilkan bilah alat (toolbar) pengeditan dan tombol bantuan. + Untuk melihat bantuan di %1$s, tekan dan tahan apa saja untuk menampilkan keterangan (tooltip). Di editor, pilih dan tekan lama pada teks untuk menampilkan bilah alat (toolbar) pengeditan dan tombol bantuan. + Untuk melihat bantuan di %1$s, tekan dan tahan apa saja untuk menampilkan keterangan (tooltip). Di editor, pilih dan tekan lama pada teks untuk menampilkan bilah alat (toolbar) pengeditan dan tombol bantuan. Gunakan spasi sebagai pengganti tab Tentukan apakah tombol tab akan memasukkan spasi bukan karakter tab. Donasi @@ -504,7 +504,7 @@ Berlangganan untuk mendapatkan pembaruan terbaru. Diskusikan fitur, bug, dan peningkatan di sini. Apa yang baru di versi ini? - Informasi lebih lanjut tentang Code on the Go + Informasi lebih lanjut tentang %1$s Konfigurasi umum IDE Konfigurasi editor Hapus baris baru di akhir @@ -545,7 +545,7 @@ Aplikasi Anda telah terinstal. Apakah Anda ingin menjalankannya? Aplikasi terinstal - Layanan build Gradle Code on the Go + Layanan build Gradle %1$s Kode warna Hex Format warna tidak didukung: %s Pilih @@ -710,7 +710,7 @@ Gelap Ikuti sistem Tema - Pilih tema untuk Code on the Go (perlu dimulai ulang). + Pilih tema untuk %1$s (perlu dimulai ulang). Konfigurasi proyek Anda harus mem-build dan menginstal aplikasi tersebut sebelum dapat menjalankannya. Diagnostik diaktifkan @@ -759,7 +759,7 @@ Privasi Privasi & analitik - Code on the Go mengumpulkan informasi penggunaan dan laporan crash anonim untuk membantu kami memperbaiki bug dan meningkatkan aplikasi. Tidak ada informasi pribadi yang dikumpulkan atau dibagikan.\n\nBagikan data anonim akan mengirim informasi ini. Tetap offline tidak mengirim apa pun. + %1$s mengumpulkan informasi penggunaan dan laporan crash anonim untuk membantu kami memperbaiki bug dan meningkatkan aplikasi. Tidak ada informasi pribadi yang dikumpulkan atau dibagikan.\n\nBagikan data anonim akan mengirim informasi ini. Tetap offline tidak mengirim apa pun. Bagikan data anonim Tetap offline @@ -772,10 +772,10 @@ Versi Android Setuju Opsi Pengembang - Opsi percobaan/debugging untuk Code on the Go + Opsi percobaan/debugging untuk %1$s Debugging Simpan log - Simpan log Code on the Go ke $HOME/.androidide/logs + Simpan log %1$s ke $HOME/.androidide/logs Jalankan varian debug aplikasi Anda untuk melihat lognya di sini. LogSender dinonaktifkan. Anda dapat mengaktifkannya di pengaturan. Log dari IDE ditampilkan di sini. @@ -803,7 +803,7 @@ "Build aplikasi atau jalankan task untuk melihat output build-nya di sini." Gagal melakukan tindakan kode Aktifkan LogSender - Jika dinonaktifkan, log dari aplikasi tidak akan ditampilkan di Code on the Go + Jika dinonaktifkan, log dari aplikasi tidak akan ditampilkan di %1$s Varian build Agen Terapkan @@ -837,14 +837,14 @@ Build sedang berjalan. Ekspor setelah selesai. Percobaan Eksperimen aktif - Anda menggunakan varian %1$s dari Code on the Go pada perangkat %2$s. Konfigurasi ini mungkin berfungsi, tetapi akan mengurangi kinerja dan berpotensi menimbulkan risiko keamanan. Sebaiknya hindari menggunakan konfigurasi ini jika memungkinkan. + Anda menggunakan varian %1$s dari %3$s pada perangkat %2$s. Konfigurasi ini mungkin berfungsi, tetapi akan mengurangi kinerja dan berpotensi menimbulkan risiko keamanan. Sebaiknya hindari menggunakan konfigurasi ini jika memungkinkan. Sematkan nomor baris Kunci nomor baris agar tetap terlihat saat menggulir secara horizontal. Gelombang Biru Sinar Mentari Material You Bahasa - Pilih bahasa untuk Code on the Go. + Pilih bahasa untuk %1$s. Default Sistem Direktori proyek tidak dapat diakses File yang dipilih bukan direktori @@ -861,23 +861,23 @@ Tidak punya komputer? Tidak ada internet? Tidak masalah. Izinkan Penyimpanan - Izinkan Code on the Go membuka dan menyimpan file di perangkat ini. + Izinkan %1$s membuka dan menyimpan file di perangkat ini. Instal paket - Izinkan Code on the Go menginstal aplikasi yang Anda build di perangkat ini. + Izinkan %1$s menginstal aplikasi yang Anda build di perangkat ini. Debugger mengambang - Izinkan Code on the Go menampilkan kontrol debugger mengambang untuk memeriksa kode saat berjalan. + Izinkan %1$s menampilkan kontrol debugger mengambang untuk memeriksa kode saat berjalan. Fitur debugger mengambang tidak tersedia di perangkat ini. - Jika Anda tidak dapat mengaktifkan izin ini, buka Info aplikasi Code on the Go, ketuk menu titik tiga, lalu aktifkan pengaturan terbatas. + Jika Anda tidak dapat mengaktifkan izin ini, buka Info aplikasi %1$s, ketuk menu titik tiga, lalu aktifkan pengaturan terbatas. Aktifkan pengaturan terbatas - Android telah menonaktifkan tombol “Tampilkan di atas aplikasi lain” karena Code on the Go diinstal dari luar toko aplikasi. Untuk mengaktifkannya: + Android telah menonaktifkan tombol “Tampilkan di atas aplikasi lain” karena %1$s diinstal dari luar toko aplikasi. Untuk mengaktifkannya: Buka Info Aplikasi Notifikasi - Izinkan Code on the Go menampilkan notifikasi. + Izinkan %1$s menampilkan notifikasi. Aksesibilitas - Izinkan Code on the Go mengakses layanan aksesibilitas untuk debugging. + Izinkan %1$s mengakses layanan aksesibilitas untuk debugging. Selesaikan penginstalan Izin - Code on the Go memerlukan izin berikut: + %1$s memerlukan izin berikut: Silakan berikan izin untuk melanjutkan. Sepertinya Anda sedang offline. Periksa koneksi internet Anda. Perhatian! Anda menggunakan data seluler. @@ -902,7 +902,7 @@ Versi JDK Pilihan saat ini: %1$s (perlu dimulai ulang jika diubah) Proses penyiapan sedang berlangsung - Penyiapan Code on the Go selesai. + Penyiapan %1$s selesai. Selesaikan penyiapan IDE untuk melanjutkan. Debugger Memulai debugger… @@ -937,12 +937,12 @@ Nilai variabel \'%1$s\' tidak dapat diubah. Ada kesalahan pada akses jaringan Tidak dapat mendeteksi koneksi JDWP. Operasi gagal dengan kesalahan %1$d. - Code on the Go tidak diizinkan membuka atau mengikat soket jaringan pada jaringan lokal. - Akses jaringan untuk Code on the Go diblokir oleh sistem. Aplikasi tidak diizinkan menggunakan jaringan atau layanan tidak tersedia. - Tidak dapat memulai debugger Code on the Go. + %1$s tidak diizinkan membuka atau mengikat soket jaringan pada jaringan lokal. + Akses jaringan untuk %1$s diblokir oleh sistem. Aplikasi tidak diizinkan menggunakan jaringan atau layanan tidak tersedia. + Tidak dapat memulai debugger %1$s. Debugger belum siap untuk sesi debug. - Pastikan Code on the Go memiliki izin untuk mengakses jaringan lokal. - Hal ini dapat diperiksa dengan membuka layar \"Info aplikasi\" Code on the Go di pengaturan perangkat Anda, + Pastikan %1$s memiliki izin untuk mengakses jaringan lokal. + Hal ini dapat diperiksa dengan membuka layar \"Info aplikasi\" %1$s di pengaturan perangkat Anda, lalu periksa apakah akses jaringan diizinkan pada bagian \"Penggunaan data\" (nama dapat berbeda pada setiap perangkat). \n\nJika akses jaringan diizinkan dan masalah masih terjadi, silakan kirim laporan bug dengan melampirkan log. @@ -982,8 +982,8 @@ Hubungi App Dev for All Untuk melaporkan masalah, memberikan saran, dan mengajukan pertanyaan, kirim email ke feedback@appdevforall.org. Akses internet diperlukan. - Code on the Go - Masukan untuk Code on the Go + @string/app_name + Masukan untuk %1$s Log terlalu besar untuk dikirim langsung. Tidak punya komputer? Tidak ada internet?\nTidak masalah. Offline @@ -1084,9 +1084,9 @@ Ganti aplikasi proxy Quick Build? %1$s saat ini adalah aplikasi proxy Quick Build, yang memuat ulang perubahan Anda tanpa penginstalan ulang. Menjalankan ini akan menggantinya dengan APK biasa. Ganti aplikasi yang terinstal untuk proyek ini? - Code on the Go tidak dapat menentukan aplikasi mana yang terinstal untuk proyek ini - proyek mungkin masih dalam proses sinkronisasi. Melanjutkan akan mengganti apa pun yang terinstal dengan ID aplikasi proyek ini. + %1$s tidak dapat menentukan aplikasi mana yang terinstal untuk proyek ini - proyek mungkin masih dalam proses sinkronisasi. Melanjutkan akan mengganti apa pun yang terinstal dengan ID aplikasi proyek ini. Ganti - Muat ulang langsung mengalami crash. Aplikasi berada pada versi terakhir yang berfungsi. Untuk info lebih lanjut, lihat Output Build di Code on the Go. + Muat ulang langsung mengalami crash. Aplikasi berada pada versi terakhir yang berfungsi. Untuk info lebih lanjut, lihat Output Build di %1$s. Kesalahan resource ini kini menghalangi setiap penyimpanan, bahkan yang hanya berisi kode - Quick Build membangun ulang semua resource Anda pada setiap muat ulang. Perbaiki dan simpan. Jika kesalahan menyebutkan sesuatu yang tidak dapat Anda ubah, tekan lama Quick Build dan pilih Mulai ulang sesi. Tersimpan. Quick Build tidak men-deploy sumber pengujian - tidak ada apa pun di bawah src/test, src/androidTest, atau testFixtures yang menjadi bagian dari aplikasi yang dibangunnya. Jalankan pengujian Anda dari tugas build sebagai gantinya. Dimuat ulang. Layanan, content provider, atau objek Application yang sedang berjalan masih dapat memanggil versi kode sebelumnya yang Anda ubah, hingga ia dimulai ulang - tutup dan buka kembali aplikasi Anda untuk memastikan. @@ -1295,7 +1295,7 @@ Penyambungan berhasil - Ketuk tombol Kembali untuk kembali ke Code on the Go. + Ketuk tombol Kembali untuk kembali ke %1$s. Penyambungan gagal @@ -1323,8 +1323,8 @@ Berikan izin notifikasi - Notifikasi dari Code on the Go akan membantu Anda menyelesaikan penyambungan. - Silakan izinkan Code on the Go untuk menampilkan notifikasi dengan kanal notifikasi \'%1$s\'. + Notifikasi dari %2$s akan membantu Anda menyelesaikan penyambungan. + Silakan izinkan %2$s untuk menampilkan notifikasi dengan kanal notifikasi \'%1$s\'. @@ -1353,7 +1353,7 @@ - Code on the Go tidak diizinkan untuk memulai layanan latar depan (OP_START_FOREGROUND ditolak) + %1$s tidak diizinkan untuk memulai layanan latar depan (OP_START_FOREGROUND ditolak) @@ -1374,18 +1374,18 @@ Info Aplikasi, ketuk menu titik tiga (⋮) di sudut atas.]]> Izinkan pengaturan terbatas.]]> - Tampilkan di atas aplikasi lain dan aktifkan fitur tersebut untuk Code on the Go.]]> + Tampilkan di atas aplikasi lain dan aktifkan fitur tersebut untuk %1$s.]]> Mulai menyambung. Opsi pengembang akan ditampilkan.]]> Debugging nirkabel.]]> Debugging nirkabel untuk menampilkan opsi lainnya.]]> Sambungkan perangkat dengan kode penyambung.]]> - + - Lihat informasi lebih lanjut, termasuk tips pemecahan masalah.]]> + Lihat informasi lebih lanjut, termasuk tips pemecahan masalah.]]> Jelajahi dokumentasi.]]> @@ -1454,11 +1454,11 @@ Gagal menyimpan bitmap ke file PixelCopy gagal Gagal mengambil atau menyimpan tangkapan layar - Kembali ke Code on the Go + Kembali ke %1$s Buka tautan eksternal? - Anda akan meninggalkan Code on the Go untuk membuka tautan eksternal:\n\n%s\n\nApakah Anda ingin melanjutkan? + Anda akan meninggalkan %2$s untuk membuka tautan eksternal:\n\n%1$s\n\nApakah Anda ingin melanjutkan? Batal Lanjutkan Jangan tanya lagi diff --git a/resources/src/main/res/values-pt-rBR/strings.xml b/resources/src/main/res/values-pt-rBR/strings.xml index e63c4edbe2..b34cd31ec8 100644 --- a/resources/src/main/res/values-pt-rBR/strings.xml +++ b/resources/src/main/res/values-pt-rBR/strings.xml @@ -9,10 +9,10 @@ Site YouTube Bilibili - Code on the Go %1$s para %2$s + %3$s %1$s para %2$s Sem computador? Sem internet? Sem problema. Programe aplicativos em qualquer lugar. Falha ao extrair o nome do pacote. - Se você estiver enfrentando problemas ao usar o Code on the Go ou ao criar aplicativos Android, participe do nosso fórum de Discussões e peça ajuda por lá.\n\nVocê também pode enviar sugestões por e-mail. + Se você estiver enfrentando problemas ao usar o %1$s ou ao criar aplicativos Android, participe do nosso fórum de Discussões e peça ajuda por lá.\n\nVocê também pode enviar sugestões por e-mail. Baixe o Code on the Go no site oficial para obter os recursos e as atualizações mais recentes. https://appdevforall.org/codeonthego URL fornecida inválida. @@ -112,7 +112,7 @@ A instalação do Terminal só é compatível com o usuário principal. Este dispositivo não é compatível - Você está usando a variante %1$s do Code on the Go em um dispositivo que oferece suporte apenas a %2$s. Essa configuração não é compatível. Instale a variante %2$s do Code on the Go. + Você está usando a variante %1$s do %3$s em um dispositivo que oferece suporte apenas a %2$s. Essa configuração não é compatível. Instale a variante %2$s do %3$s. Limpar saída Saída da compilação Execução rápida @@ -124,7 +124,7 @@ Depurar Configurando seu projeto - O Code on the Go está inicializando seu projeto. Seja paciente!\n\nQuando a configuração terminar, “Projeto inicializado” será exibido na parte inferior da tela. + O %1$s está inicializando seu projeto. Seja paciente!\n\nQuando a configuração terminar, “Projeto inicializado” será exibido na parte inferior da tela. Criar um novo projeto SDK mínimo Novo projeto @@ -136,7 +136,7 @@ Fechar este projeto O último projeto aberto não existe. Não foi possível abrir este link. - Conclua a configuração do Code on the Go e abra este link novamente. + Conclua a configuração do %1$s e abra este link novamente. Nenhum projeto chamado “%s” foi encontrado. O arquivo “%s” não foi encontrado no projeto. “%s” não é um número de linha válido. @@ -340,7 +340,7 @@ Refazer Tamanho da fonte do editor - Sobre o Code on the Go + Sobre o %1$s Limpar caches do Gradle Limpar o diretório de caches do Gradle. Isso excluirá todas as dependências baixadas pelo Gradle. Os arquivos necessários serão baixados novamente na próxima compilação. Flags adicionais do Gradle @@ -356,9 +356,9 @@ Editor Compilação e execução Abrir último projeto - Quando ativado, ao reiniciar o Code on the Go, o último projeto aberto será aberto automaticamente. + Quando ativado, ao reiniciar o %1$s, o último projeto aberto será aberto automaticamente. Confirmar abertura do projeto - Quando ativado, o Code on the Go pede confirmação antes de abrir o último projeto. + Quando ativado, o %1$s pede confirmação antes de abrir o último projeto. Erro ao abrir o projeto. Geral Tamanho da tabulação @@ -389,7 +389,7 @@ Pré-visualização indisponível Não foi possível criar uma visualização raiz. O XML está vazio ou não tem um elemento de nível superior válido. - O Code on the Go parou de funcionar + O %1$s parou de funcionar Ocorreu um erro interno.\n\nOs detalhes para nos ajudar a corrigir o problema foram salvos e serão enviados com segurança na próxima vez que seu dispositivo estiver online.\n\nAo pressionar OK, o aplicativo será fechado e quaisquer alterações não salvas poderão ser perdidas. Reinicie o aplicativo para continuar.\n\nSe o erro ocorrer novamente, tente reiniciar o dispositivo. Se o problema persistir, %1$s entre em contato com nossa equipe de suporte. Relatório de falha do aplicativo @@ -463,8 +463,8 @@ Quando ativado, o editor considera o espaço em branco como o limite entre as palavras. Para ver a árvore de arquivos e as opções do projeto, deslize da esquerda para a direita ou toque no ícone de menu no canto superior esquerdo. Para ver logs, diagnósticos e mais, deslize para cima ou toque na parte inferior da página. - Para ver a ajuda do aplicativo Code on the Go, mantenha qualquer item pressionado para ver uma dica. No editor, selecione um texto e mantenha-o pressionado para mostrar a barra de edição e o botão de ajuda. - Para ver a ajuda no Code on the Go, mantenha qualquer item pressionado para ver uma dica. No editor, selecione um texto e mantenha-o pressionado para mostrar a barra de edição e o botão de ajuda. + Para ver a ajuda do aplicativo %1$s, mantenha qualquer item pressionado para ver uma dica. No editor, selecione um texto e mantenha-o pressionado para mostrar a barra de edição e o botão de ajuda. + Para ver a ajuda no %1$s, mantenha qualquer item pressionado para ver uma dica. No editor, selecione um texto e mantenha-o pressionado para mostrar a barra de edição e o botão de ajuda. Usar tabulação com espaços Escolha se a tecla Tab insere espaços em vez do caractere de tabulação. Doar @@ -478,7 +478,7 @@ Inscreva-se para receber as últimas atualizações. Discuta aqui recursos, bugs e melhorias. O que há de novo nesta versão? - Mais sobre o Code on the Go + Mais sobre o %1$s Configuração geral da IDE Configurar o editor Remover nova linha final @@ -518,7 +518,7 @@ Instalando APK… Seu aplicativo foi instalado. Deseja iniciá-lo? Aplicativo instalado - Serviço de compilação Gradle do Code on the Go + Serviço de compilação Gradle do %1$s Código de cor hexadecimal Formato de cor não compatível: %s Escolher @@ -677,7 +677,7 @@ Escuro Seguir o sistema Tema - Selecione um tema para o Code on the Go (requer reinicialização). + Selecione um tema para o %1$s (requer reinicialização). Configuração do projeto Você deve compilar e instalar o aplicativo antes de poder iniciá-lo. Diagnósticos ativados @@ -721,7 +721,7 @@ Use o Kotlin Script (.kts) para arquivos de compilação do Gradle Privacidade Privacidade e análises - O Code on the Go coleta informações anônimas de uso e de falhas para nos ajudar a corrigir bugs e melhorar o aplicativo. Nenhuma informação pessoal é coletada ou compartilhada.\n\nCompartilhar dados anônimos envia essas informações. Ficar offline não envia absolutamente nada. + O %1$s coleta informações anônimas de uso e de falhas para nos ajudar a corrigir bugs e melhorar o aplicativo. Nenhuma informação pessoal é coletada ou compartilhada.\n\nCompartilhar dados anônimos envia essas informações. Ficar offline não envia absolutamente nada. Compartilhar dados anônimos Ficar offline ID único @@ -733,10 +733,10 @@ Versão do Android Aceitar Opções do desenvolvedor - Opções experimentais/de depuração para Code on the Go + Opções experimentais/de depuração para %1$s Depuração Despejar logs - Despejar os logs do Code on the Go em $HOME/.cg/logs + Despejar os logs do %1$s em $HOME/.cg/logs Execute a variante de depuração do seu aplicativo para ver os logs aqui. O LogSender está desativado. Você pode ativá-lo nas preferências. Os logs da IDE são exibidos aqui. @@ -764,7 +764,7 @@ "Compile o aplicativo ou execute uma tarefa para ver aqui a saída da compilação. " Falha ao executar a ação de código Ativar LogSender - Quando desativado, os logs do aplicativo não serão exibidos no Code on the Go + Quando desativado, os logs do aplicativo não serão exibidos no %1$s Variantes de compilação Agente Aplicar @@ -785,14 +785,14 @@ Iniciar aplicativo Experimental Experimentos ativados - Você está usando a variante %1$s do Code on the Go em um dispositivo %2$s. Esta configuração pode funcionar, mas resultará em desempenho reduzido e possíveis vulnerabilidades de segurança. Por favor, evite usar essa configuração sempre que possível. + Você está usando a variante %1$s do %3$s em um dispositivo %2$s. Esta configuração pode funcionar, mas resultará em desempenho reduzido e possíveis vulnerabilidades de segurança. Por favor, evite usar essa configuração sempre que possível. Fixar números de linha Mantém os números de linha fixos na visualização para que permaneçam visíveis ao rolar horizontalmente. Onda Azul Brilho Ensolarado Material You Idioma - Selecione um idioma para o Code on the Go. + Selecione um idioma para o %1$s. Padrão do sistema O diretório do projeto não está acessível O arquivo selecionado não é um diretório @@ -809,23 +809,23 @@ Sem computador? Sem internet? Sem problema. Conceder Armazenamento - Permita que o Code on the Go abra e salve arquivos neste dispositivo. + Permita que o %1$s abra e salve arquivos neste dispositivo. Instalar pacotes - Permita que o Code on the Go instale os aplicativos que você compila neste dispositivo. + Permita que o %1$s instale os aplicativos que você compila neste dispositivo. Depurador flutuante - Permita que o Code on the Go exiba controles flutuantes do depurador para inspecionar seu código enquanto ele é executado. + Permita que o %1$s exiba controles flutuantes do depurador para inspecionar seu código enquanto ele é executado. O depurador flutuante não está disponível neste dispositivo. - Se você não conseguir ativar esta permissão, abra as Informações do app do Code on the Go, toque no menu de três pontos e ative as configurações restritas. + Se você não conseguir ativar esta permissão, abra as Informações do app do %1$s, toque no menu de três pontos e ative as configurações restritas. Ativar configurações restritas - O Android desativou a chave “Exibir sobre outros apps” porque o Code on the Go foi instalado de fora de uma loja de aplicativos. Para ativá-la: + O Android desativou a chave “Exibir sobre outros apps” porque o %1$s foi instalado de fora de uma loja de aplicativos. Para ativá-la: Abrir Informações do app Notificações - Permita que o Code on the Go exiba notificações. + Permita que o %1$s exiba notificações. Acessibilidade - Permita que o Code on the Go acesse os serviços de acessibilidade para depuração. + Permita que o %1$s acesse os serviços de acessibilidade para depuração. Concluir instalação Permissões - O Code on the Go requer as seguintes permissões: + O %1$s requer as seguintes permissões: Por favor, conceda as permissões para continuar. Parece que você está offline. Verifique sua conexão com a internet. Atenção! Você está usando dados móveis. @@ -850,7 +850,7 @@ Versão do JDK Selecionada atualmente: %1$s (requer reinicialização se for alterada) A configuração está em andamento - Configuração do Code on the Go concluída. + Configuração do %1$s concluída. Conclua a configuração da IDE para continuar. Depurador Iniciando o depurador… @@ -885,11 +885,11 @@ O valor da variável \'%1$s\' não pode ser atualizado. Erro de acesso à rede Não foi possível escutar conexões JDWP. A operação falhou com o erro %1$d. - O Code on the Go não tem permissão para abrir ou vincular um soquete de rede na rede local. - O acesso à rede do Code on the Go está bloqueado pelo sistema. O aplicativo não tem permissão para usar a rede ou o serviço está indisponível. - Não foi possível iniciar o depurador do Code on the Go. + O %1$s não tem permissão para abrir ou vincular um soquete de rede na rede local. + O acesso à rede do %1$s está bloqueado pelo sistema. O aplicativo não tem permissão para usar a rede ou o serviço está indisponível. + Não foi possível iniciar o depurador do %1$s. O depurador não está pronto para uma sessão de depuração. - Verifique se o Code on the Go tem permissão para acessar a rede local. Isso pode ser conferido na tela “Informações do app” do Code on the Go, nas configurações do dispositivo, verificando se o acesso à rede é permitido em “Uso de dados” (o nome exato pode variar entre dispositivos).\n\nSe o acesso à rede for permitido e o problema persistir, envie um relatório de bug com os logs anexados. + Verifique se o %1$s tem permissão para acessar a rede local. Isso pode ser conferido na tela “Informações do app” do %1$s, nas configurações do dispositivo, verificando se o acesso à rede é permitido em “Uso de dados” (o nome exato pode variar entre dispositivos).\n\nSe o acesso à rede for permitido e o problema persistir, envie um relatório de bug com os logs anexados. Nenhuma atividade para tratar a ação %1$s Arquivo Ações @@ -923,8 +923,8 @@ É necessário acesso à internet. Entre em contato com a App Dev for All Para relatar problemas, fazer sugestões e tirar dúvidas, envie um e-mail para feedback@appdevforall.org. É necessário acesso à internet. - Code on the Go - Feedback sobre o Code on the Go + @string/app_name + Feedback sobre o %1$s O log é grande demais para ser enviado diretamente. Sem computador? Sem internet?\nSem problema. Offline @@ -1045,9 +1045,9 @@ Substituir o aplicativo proxy da Compilação rápida? %1$s é atualmente o aplicativo proxy da Compilação rápida, que recarrega suas edições sem reinstalar. Esta execução o substitui por um APK normal. Substituir o aplicativo instalado para este projeto? - O Code on the Go não consegue identificar qual aplicativo está instalado para este projeto; o projeto ainda pode estar sincronizando. Continuar substitui o que estiver instalado com o ID de aplicativo deste projeto. + O %1$s não consegue identificar qual aplicativo está instalado para este projeto; o projeto ainda pode estar sincronizando. Continuar substitui o que estiver instalado com o ID de aplicativo deste projeto. Substituir - O recarregamento em tempo real falhou. O aplicativo está na última versão funcional. Para mais informações, veja a Saída da compilação no Code on the Go. + O recarregamento em tempo real falhou. O aplicativo está na última versão funcional. Para mais informações, veja a Saída da compilação no %1$s. Este erro de recurso agora está bloqueando todos os salvamentos, até mesmo os que alteram apenas código; a Compilação rápida recompila todos os seus recursos a cada recarregamento. Corrija-o e salve. Se o erro mencionar algo que você não pode alterar, mantenha a Compilação rápida pressionada e escolha Reiniciar sessão. Salvo. A Compilação rápida não implanta código de teste; nada em src/test, src/androidTest ou testFixtures faz parte do aplicativo que ela compila. Execute seus testes a partir de uma tarefa de compilação. Recarregado. Um serviço, provedor de conteúdo ou objeto Application em execução ainda pode estar chamando a versão anterior do código que você alterou até ser reiniciado; feche e reabra o aplicativo para ter certeza. @@ -1235,7 +1235,7 @@ Pareamento concluído com sucesso - Toque no botão Voltar para retornar ao Code on the Go. + Toque no botão Voltar para retornar ao %1$s. Falha no pareamento @@ -1254,7 +1254,7 @@ Conceder permissão de notificação - Uma notificação do Code on the Go ajudará você a concluir o pareamento. Permita que o Code on the Go mostre notificações com o canal de notificação \'%1$s\'. + Uma notificação do %2$s ajudará você a concluir o pareamento. Permita que o %2$s mostre notificações com o canal de notificação \'%1$s\'. Ative a depuração sem fio e siga as instruções para parear o depurador. @@ -1275,7 +1275,7 @@ Serviço iniciado - O Code on the Go não tem permissão para iniciar serviços em primeiro plano (negação de OP_START_FOREGROUND) + O %1$s não tem permissão para iniciar serviços em primeiro plano (negação de OP_START_FOREGROUND) O depurador requer Android 11 ou superior para funcionar. @@ -1291,17 +1291,17 @@ Informações do app, toque no menu de três pontos (⋮) no canto superior.]]> Permitir configurações restritas.]]> - Exibir sobre outros apps e ative a opção para o Code on the Go.]]> + Exibir sobre outros apps e ative a opção para o %1$s.]]> Iniciar pareamento. As opções do desenvolvedor serão exibidas.]]> Depuração sem fio.]]> Depuração sem fio para exibir mais opções.]]> Parear dispositivo com código de pareamento.]]> - + - Veja mais informações, incluindo dicas de solução de problemas.]]> + Veja mais informações, incluindo dicas de solução de problemas.]]> %3$s]]> Explore a documentação.]]> @@ -1375,10 +1375,10 @@ Falha ao salvar o bitmap em arquivo Falha no PixelCopy Falha ao capturar ou salvar a captura de tela - Voltar ao Code on the Go + Voltar ao %1$s Abrir link externo? - Você está prestes a sair do Code on the Go para abrir um link externo:\n\n%s\n\nDeseja continuar? + Você está prestes a sair do %2$s para abrir um link externo:\n\n%1$s\n\nDeseja continuar? Cancelar Continuar Não perguntar novamente diff --git a/resources/src/main/res/values-ro-rRO/strings.xml b/resources/src/main/res/values-ro-rRO/strings.xml index fcf22e9335..fa834e856a 100644 --- a/resources/src/main/res/values-ro-rRO/strings.xml +++ b/resources/src/main/res/values-ro-rRO/strings.xml @@ -6,10 +6,10 @@ Text to search Email Website - Code on the Go %1$s for %2$s + %3$s %1$s for %2$s Simplu, un IDE pentru Android Nu s-a putut extrage numele pachetului! - Dacă întâmpinați probleme în timp ce utilizați Code on the Go sau la construirea de aplicații Android, vă puteți alătura Grupului Telegram pentru a solicita ajutor acolo. De asemenea, puteți trimite sugestii pe e-mailul nostru. + Dacă întâmpinați probleme în timp ce utilizați %1$s sau la construirea de aplicații Android, vă puteți alătura Grupului Telegram pentru a solicita ajutor acolo. De asemenea, puteți trimite sugestii pe e-mailul nostru. Ai nevoie de ajutor? Preferințte IDE Discută pe Telegram @@ -40,7 +40,7 @@ Te rog asteapta un moment … Device Not Supported - You are using %1$s variant of Code on the Go on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of Code on the Go. + You are using %1$s variant of %3$s on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of %3$s. Șterge Log Log Ieșire Rulare rapidă @@ -51,7 +51,7 @@ Rulare Configurarea noului proiect - Code on the Go configurează fișierele și directoarele noului tău proiect. Te rugăm să ai răbdare!\n\nCând configurarea se va termina, \"Proiect inițializat\" va apărea în partea de jos a ecranului. + %1$s configurează fișierele și directoarele noului tău proiect. Te rugăm să ai răbdare!\n\nCând configurarea se va termina, \"Proiect inițializat\" va apărea în partea de jos a ecranului. Creați proiect SDK minim Proiect nou @@ -140,7 +140,7 @@ Refacere Dimensiunea fontului editorului - Despre Code on the Go + Despre %1$s Curăță cache-ul Gradle Goliți directorul cache Gradle. Acest lucru va șterge toate dependențele descărcate de Gradle. Fișierele necesare vor fi descărcate din nou la următoarea generare. Flaguri Gradle suplimentare @@ -176,7 +176,7 @@ Nu s-a reușit să se genereze codul XML Generarea codului XML Trageți cu degetul în sus pentru jurnale și multe altele. - Code on the Go s-a oprit + %1$s s-a oprit Vă rugăm să deschideți o problemă pe github cu următorul stacktrace : Faceți clic pe butonul de mai jos pentru a copia jurnalul și a deschide pagina de probleme. Traduceri @@ -243,7 +243,7 @@ Subscribe for latest updates. Discuss featues, bugs and improvements here. What\'s new in this version? - More about Code on the Go. + More about %1$s. General IDE configuration. Configure the editor. Trim final new line @@ -282,7 +282,7 @@ Dacă este activat, fișierul din \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" va fi folosit ca font în Editor. Instalez APK… Doriți să deschideți aplicația? - Code on the Go Gradle build service + %1$s Gradle build service Culoarea Hex Alege Setarea permisiunilor executabile… @@ -347,7 +347,7 @@ Întunecat Ca în sistemă Theme - Select a theme for Code on the Go (requires restart). + Select a theme for %1$s (requires restart). Configurarea proiectului Trebuie să construiești și să instalezi aplicația înainte de a o lansa. Diagnosticarea activată @@ -387,10 +387,10 @@ Versiune Android Opt-in Developer options - Experimental/debugging options for Code on the Go + Experimental/debugging options for %1$s Debugging Dump logs - Dump Code on the Go logs to $HOME/.cg/logs + Dump %1$s logs to $HOME/.cg/logs Run the debug variant of your application to view its logs here. LogSender is disabled. You can enable it in preferences. Logs from the IDE are shown here. @@ -398,7 +398,7 @@ "Build the application or run a task to see its build output here. " Failed to perform code action Enable LogSender - When disabled, logs from applications won\'t be shown in Code on the Go + When disabled, logs from applications won\'t be shown in %1$s Build variants Apply Discard @@ -416,14 +416,14 @@ Cannot run application. No application modules found in project. Launch app Experimental - You are using %1$s variant of Code on the Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Whether the editor should pin line number panel when scrolled horizontally. Blue Wave Sunny Glow Material You Language - Select a language for Code on the Go. + Select a language for %1$s. System Default Project directory is not accessible Selected file is not a directory @@ -437,10 +437,10 @@ Grant Storage Required to access project files. - Allow installing APKs built with Code on the Go. + Allow installing APKs built with %1$s. Install packages Permissions - Code on the Go requires the following permissions + %1$s requires the following permissions Please grant the permissions to continue. It seems you\'re offline. Check your internet connection. Heads up! You\'re using cellular data. diff --git a/resources/src/main/res/values-ru-rRU/strings.xml b/resources/src/main/res/values-ru-rRU/strings.xml index bd3a454d98..0a8ea135b4 100644 --- a/resources/src/main/res/values-ru-rRU/strings.xml +++ b/resources/src/main/res/values-ru-rRU/strings.xml @@ -6,10 +6,10 @@ Текст для поиска Электронная почта Вебсайт - Code on the Go %1$s для %2$s + %3$s %1$s для %2$s Просто IDE для Android Ошибка распаковки имени пакета! - Если вы столкнулись с какими-либо проблемами при использовании Code on the Go или при сборке Android приложений, вы можете присоединиться к нашей группе в Telegram и попросить о помощи там.\n\nВы также можете присылать нам свои пожелания и предложения на наш электронный адрес. + Если вы столкнулись с какими-либо проблемами при использовании %1$s или при сборке Android приложений, вы можете присоединиться к нашей группе в Telegram и попросить о помощи там.\n\nВы также можете присылать нам свои пожелания и предложения на наш электронный адрес. Нужна помощь? Настройки IDE Обсуждение в Telegram @@ -37,7 +37,7 @@ Пожалуйста, подождите немного… Устройство не поддерживается - Вы используете сборку Code on the Go для архитектуры %1$s на устройстве, поддерживающем только приложения для %2$s. Code on the Go не будет работать в такой конфигурации. Пожалуйста, установите сборку Code on the Go для архитектуры %2$s. + Вы используете сборку %3$s для архитектуры %1$s на устройстве, поддерживающем только приложения для %2$s. %3$s не будет работать в такой конфигурации. Пожалуйста, установите сборку %3$s для архитектуры %2$s. Очистить выходные файлы Результат сборки Быстрая сборка @@ -48,7 +48,7 @@ Запустить Настройка вашего нового проекта - Code on the Go настраивает файлы и каталоги вашего нового проекта. Пожалуйста, наберитесь терпения!\n\nКогда настройка завершится, в нижней части экрана будет отображено \"Проект инициализирован\". + %1$s настраивает файлы и каталоги вашего нового проекта. Пожалуйста, наберитесь терпения!\n\nКогда настройка завершится, в нижней части экрана будет отображено \"Проект инициализирован\". Создать проект Минимальный SDK Новый проект @@ -138,7 +138,7 @@ Повтор действия Размер шрифта редактора - Об Code on the Go + Об %1$s Очистить кэш Gradle Очистить директорию кэша Gradle. Это удалит все зависимости, скачанные Gradle. Необходимые файлы будут вновь скачаны при следующей сборке. Дополнительные флаги Gradle @@ -174,7 +174,7 @@ Не удалось сгенерировать код XML Генерация кода XML Провведите вверх, для просмотра сообщений сборки, логов и прочего. - Code on the Go приостановила работу из-за непридвиденной ошибки + %1$s приостановила работу из-за непридвиденной ошибки Пожалуйста, создайте issue на нашем GitHub, прикрепив сообщение ниже: Нажмите на кнопку ниже, чтобы скопировать лог и открыть страницу создания issue. Переводчики @@ -242,7 +242,7 @@ Узнавайте о новых обновлениях! Сообщайте об ошибках, предлагайте новые функции и обсуждайте нововведения здесь. Что нового в этой версии? - Узнайте больше об Code on the Go. + Узнайте больше об %1$s. Общие параметры IDE. Настройте редактор. Стирать последний перенос строки @@ -281,7 +281,7 @@ Если активно, файл \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" будет использован в качестве шрифта редактора. Установка APK... Хотите открыть установленное приложение? - Служба сборки Code on the Go Gradle + Служба сборки %1$s Gradle HEX-код Выбрать Настройка разрешений для исполняемого файла… @@ -349,7 +349,7 @@ Тёмная Как в системе Тема - Выберите тему оформления для Code on the Go (требуется перезапуск). + Выберите тему оформления для %1$s (требуется перезапуск). Настройки проекта Вы должны собрать и установить приложение, прежде чем запустить его. Активировать анализ @@ -389,10 +389,10 @@ Версия Android Присоединиться Настройки разработчика - Экспериментальные/отладочные опции для Code on the Go + Экспериментальные/отладочные опции для %1$s Отладка Дамп логов - Дамп логов Code on the Go в $HOME/.cg/logs + Дамп логов %1$s в $HOME/.cg/logs Запустите отладочный вариант вашего приложения, чтобы увидеть его логи здесь. LogSender отключен. Вы можете включить его в настройках. Логи IDE отображаются здесь. @@ -400,7 +400,7 @@ "Соберите приложение или запустите задачу, чтобы увидеть результаты сборки здесь. " Не удалось выполнить действие с кодом Включить LogSender - Если отключено, журналы из приложений не будут отображаться в Code on the Go + Если отключено, журналы из приложений не будут отображаться в %1$s Варианты сборки Применить Отменить @@ -418,14 +418,14 @@ Невозможно запустить приложение. В проекте не найдены модули приложения. Запустить приложение Экспериментальная функция - Вы используете сборку Code on the Go для архитектуры %1$s на устройстве с %2$s. Code on the Go скорее всего сможет функционировать в такой конфигурации, но это приведет к ухудшению производительности и сделает ваше устройство потенциально уязвимым. Пожалуйста, не используйте Code on the Go в такой конфигурации, если это возможно. + Вы используете сборку %3$s для архитектуры %1$s на устройстве с %2$s. %3$s скорее всего сможет функционировать в такой конфигурации, но это приведет к ухудшению производительности и сделает ваше устройство потенциально уязвимым. Пожалуйста, не используйте %3$s в такой конфигурации, если это возможно. Закрепить номера строк Оставлять панель с номерами строк видимой при горизонтальной прокрутке редактора. Синяя волна Солнечный свет Material You Язык - Выберите язык Code on the Go. + Выберите язык %1$s. Как в системе Директория проекта недоступна Выбранный файл не является директорией @@ -439,10 +439,10 @@ Предоставить Внутреннее хранилище Это разрешение необходимо для доступа к файлам проектов. - Разрешите устанавливать APK-файлы, собранные Code on the Go. + Разрешите устанавливать APK-файлы, собранные %1$s. Установка пакетов Разрешения - Code on the Go требуются следующие разрешения + %1$s требуются следующие разрешения Пожалуйста, предоставьте разрешения, чтобы продолжить. Похоже, вы не в сети. Проверьте подключение к интернету. Внимание! Вы используете мобильные данные. diff --git a/resources/src/main/res/values-tr-rTR/strings.xml b/resources/src/main/res/values-tr-rTR/strings.xml index 961c0b339e..d37cbd0d99 100644 --- a/resources/src/main/res/values-tr-rTR/strings.xml +++ b/resources/src/main/res/values-tr-rTR/strings.xml @@ -6,10 +6,10 @@ Aranacak metin Email Web Sitesi - Code on the Go %1$s %2$s-için + %3$s %1$s %2$s-için Basitçe, Android için bir IDE Apk dosyası ayıklanamadı! - Eğer Code on the Go\'yi kullanırken sorunlar yaşıyorsan veya uygulama inşa ederken, soeu sormak için Telegram Grubumuza katılabilirsin.\n\nVe yine öneriler için email gönderebilirsin. + Eğer %1$s\'yi kullanırken sorunlar yaşıyorsan veya uygulama inşa ederken, soeu sormak için Telegram Grubumuza katılabilirsin.\n\nVe yine öneriler için email gönderebilirsin. Yardım mı lazım? IDE tercihleri Telegram\'daki Tartışmalar @@ -40,7 +40,7 @@ 1 dakika bekleyin… Cihaz Desteklenmiyor - Yalnızca %2$s\'lık bir cihazda Code on the Go\'nin %1$s varyantını kullanıyorsunuz. Bu yapılandırma desteklenmiyor. Lütfen Code on the Go\'nin %2$s varyantını yükleyin. + Yalnızca %2$s\'lık bir cihazda %3$s\'nin %1$s varyantını kullanıyorsunuz. Bu yapılandırma desteklenmiyor. Lütfen %3$s\'nin %2$s varyantını yükleyin. Çıktıyı temizle Yapım İşi Çıktısı Hızlı başlat @@ -51,7 +51,7 @@ Çalıştır Yeni projenizin kurulumu - Code on the Go, Code on the Go\'yı yükledikten sonra ilk inşa sürecinde, projenizin dosya ve dizinlerini ayarlıyor. Bu işlem yaklaşık 10-15 dakika sürebilir, lütfen sabırlı olun!\n\nKurulum tamamlandığında, ekranın altında \"Proje başlatıldı\" mesajı görüntülenecektir. + %1$s, %1$s\'yı yükledikten sonra ilk inşa sürecinde, projenizin dosya ve dizinlerini ayarlıyor. Bu işlem yaklaşık 10-15 dakika sürebilir, lütfen sabırlı olun!\n\nKurulum tamamlandığında, ekranın altında \"Proje başlatıldı\" mesajı görüntülenecektir. Proje oluştur En düşük SDK Yeni proje @@ -140,7 +140,7 @@ Yinele Editör yazı tipi boyutu - Code on the Go Hakkında + %1$s Hakkında Gradle çöplerini temizle Gradle önbellek dizinini temizle. Bu, Gradle tarafından indirilen tüm bağımlılıkları siler. Gerekli dosyalar bir sonraki derlemede(build) tekrar indirilecektir. Ek Gradle bayrakları @@ -176,7 +176,7 @@ XML kodu oluşturulamadı XML kodu oluşturuluyor İnşa çıktısı, günlükler ve daha fazlası için yukarı kaydırın. - Code on the Go çöktü + %1$s çöktü Lütfen aşağıdaki talimatları izleyerek Github\'da bir konu açın: Günlüğü kopyalamak ve sorunlar sayfasını açmak için aşağıdaki düğmeyi tıklayın. Çeviriler @@ -243,7 +243,7 @@ Son güncellemeler için abone olun. Özellikleri, sorunları ve iyileştirmeleri burada tartışın. Bu sürümde yeni ne var? - Code on the Go hakkında daha fazlası. + %1$s hakkında daha fazlası. Genel IDE yapılandırması. Düzenleyiciyi yapılandır. Sondaki yeni satırı kırp @@ -282,7 +282,7 @@ Eğer etkinleştirilmişse \"/data/data/com.itsaky.androidide/files/home/.cg/ui/font.ttf\" konumundaki dosya Düzenleyici yazı tipi olarak kullanılacak. APK kuruluyor... Uygulamayı açmak ister misiniz? - Code on the Go Gradle inşa servisi + %1$s Gradle inşa servisi Onaltılık renk kodu Seç Çalıştırılabilir izinleri ayarlanıyor… @@ -347,7 +347,7 @@ Karanlık Sistemi takip et Tema - Code on the Go için bir tema seçin (yeniden başlatma gerekir). + %1$s için bir tema seçin (yeniden başlatma gerekir). Proje yapılandırması Uygulamayı başlatabilmeniz için önce derlemeniz ve yüklemeniz gerekir. Tanılamalar etkin @@ -387,10 +387,10 @@ Android sürümü Katıl Geliştirici seçenekleri - Code on the Go için deneysel/hata ayıklama seçenekleri + %1$s için deneysel/hata ayıklama seçenekleri Hata ayıklama Günlükleri kaydet - $HOME/.cg/logs içine Code on the Go günlüklerini kaydet + $HOME/.cg/logs içine %1$s günlüklerini kaydet Uygulamanızın günlüklerini burada görüntülemek için debug varyantını çalıştırın. LogSender devre dışı. Ayarlardan etkinleştirebilirsiniz. IDE\'den günlükler burada görünür. @@ -398,7 +398,7 @@ "İnşa çıktısını burada görmek için uygulamayı inşa edin ya da bir görev çalıştırın. " Kod eylemi gerçekleştirilemedi LogSender\'ı Etkinleştir - Devre dışı bırakıldığında, uygulamalardan gelen loglar Code on the Go de görüntülenmeyecek + Devre dışı bırakıldığında, uygulamalardan gelen loglar %1$s de görüntülenmeyecek İnşa türleri Uygula Vazgeç @@ -416,14 +416,14 @@ Uygulama çalıştırılamıyor. Projede hiçbir uygulama modülü bulunamadı. Uygulamayı aç Deneysel - %2$s bir cihazda Code on the Go\'nin %1$s varyantını kullanıyorsunuz. Bu yapılandırma işe yarayabilir, ancak düşük performansa ve olası güvenlik açıklarına neden olacaktır. Lütfen mümkün olduğunca bu yapılandırmayı kullanmaktan kaçının. + %2$s bir cihazda %3$s\'nin %1$s varyantını kullanıyorsunuz. Bu yapılandırma işe yarayabilir, ancak düşük performansa ve olası güvenlik açıklarına neden olacaktır. Lütfen mümkün olduğunca bu yapılandırmayı kullanmaktan kaçının. Pin hat numaraları Düzenleyicinin yatay olarak kaydırıldığında satır numarası panelini sabitleyip sabitlemeyeceği. Mavi Dalga Güneşli Parıltı Material You Dil - Code on the Go için bir dil seç. + %1$s için bir dil seç. Sistem varsayılanı Proje dizini erişilemez Seçilen dosya bir dizin değil @@ -437,10 +437,10 @@ İzin ver Depolama Proje dosyalarına erişim için gerekli. - Code on the Go ile oluşturulmuş APK\'ların yüklenmesine izin ver. + %1$s ile oluşturulmuş APK\'ların yüklenmesine izin ver. Paketleri yükle İzinler - Code on the Go aşağıdaki izinleri gerektiriyor + %1$s aşağıdaki izinleri gerektiriyor Lütfen devam etmek için izinleri verin. Çevrimdışısın sanırım. İnternet bağlantınızı kontrol edin. Dikkat! Hücresel veri kullanıyorsunuz. diff --git a/resources/src/main/res/values-zh-rCN/strings.xml b/resources/src/main/res/values-zh-rCN/strings.xml index 01ee35210b..81c200363b 100644 --- a/resources/src/main/res/values-zh-rCN/strings.xml +++ b/resources/src/main/res/values-zh-rCN/strings.xml @@ -5,14 +5,13 @@ 复制 更多 要查找的文本 - Code on the Go 邮箱 网站 - Code on the Go v\u2022 %s - Code on the Go %1$s,适用于 %2$s + %2$s v\u2022 %1$s + %3$s %1$s,适用于 %2$s 没有电脑?没有网络?没问题!随时随地编写应用 提取包名失败 - 如果你在使用 Code on the Go 或构建 Android 应用时遇到问题,可以加入我们的讨论论坛寻求帮助\n\n你也可以通过邮箱发送建议 + 如果你在使用 %1$s 或构建 Android 应用时遇到问题,可以加入我们的讨论论坛寻求帮助\n\n你也可以通过邮箱发送建议 从官方网站下载 Code on the Go,获取最新功能和更新 https://appdevforall.org/codeonthego 提供的 URL 无效 @@ -109,7 +108,7 @@ 此设备不受支持 - 你在仅支持 %2$s 的设备上使用了 Code On The Go 的 %1$s 变体 此配置不受支持,请安装 %2$s 变体的 Code On The Go + 你在仅支持 %2$s 的设备上使用了 %3$s 的 %1$s 变体 此配置不受支持,请安装 %2$s 变体的 %3$s 清除输出 构建输出 快速运行 @@ -124,7 +123,7 @@ 正在设置你的项目 - Code on the Go 正在初始化你的项目,请耐心等待!\n\n设置完成后,屏幕底部将显示“项目已初始化” + %1$s 正在初始化你的项目,请耐心等待!\n\n设置完成后,屏幕底部将显示“项目已初始化” 创建新项目 最低 SDK 新建项目 @@ -311,7 +310,7 @@ 编辑器字体大小 - 关于 Code on the Go + 关于 %1$s 清除 Gradle 缓存 清除 Gradle 缓存目录 这将删除 Gradle 下载的所有依赖项,所需文件将在下次构建时重新下载 附加 Gradle 标志 @@ -327,9 +326,9 @@ 编辑器 构建和运行 打开上次的项目 - 启用后,重启 Code on the Go 时将自动打开上次打开的项目 + 启用后,重启 %1$s 时将自动打开上次打开的项目 确认打开项目 - 启用后,Code on the Go 在打开上次的项目前会要求确认 + 启用后,%1$s 在打开上次的项目前会要求确认 打开项目时出错 通用 制表符大小 @@ -363,7 +362,7 @@ 无法创建根视图 XML 为空或缺少有效的顶级元素 - Code on the Go 崩溃了 + %1$s 崩溃了 发生内部错误\n\n有助于我们修复问题的详细信息已保存,并将在你的设备下次联网时安全发送\n\n按“确定”后应用将关闭,任何未保存的更改可能会丢失 请重新启动应用以继续 \n\n如果错误再次发生,请尝试重启设备 如果问题仍然存在,请%1$s 联系我们的支持团队 应用崩溃报告 @@ -430,8 +429,8 @@ 启用后,编辑器将空格视为单词之间的分隔符 要查看文件树和项目选项,请从左向右滑动或点击左上角的菜单图标 要查看日志、诊断信息等,请上滑或点击页面底部 - 要查看 Code on the Go 应用的帮助,长按任意元素可查看提示 在编辑器中,选中文本并长按可显示编辑工具栏和帮助按钮 - 要查看 Code on the Go 的帮助,长按任意元素可查看提示 在编辑器中,选中文本并长按可显示编辑工具栏和帮助按钮 + 要查看 %1$s 应用的帮助,长按任意元素可查看提示 在编辑器中,选中文本并长按可显示编辑工具栏和帮助按钮 + 要查看 %1$s 的帮助,长按任意元素可查看提示 在编辑器中,选中文本并长按可显示编辑工具栏和帮助按钮 使用软制表符 选择 Tab 键是插入空格还是制表符 捐赠 @@ -445,7 +444,7 @@ 订阅获取最新更新 在此讨论功能、错误和改进 此版本有什么新内容? - 关于 Code on the Go 的更多信息 + 关于 %1$s 的更多信息 通用 IDE 配置 配置编辑器 XML @@ -487,7 +486,7 @@ 你的应用已安装 是否要启动该应用? 应用已安装 - Code on the Go Gradle 构建服务 + %1$s Gradle 构建服务 十六进制颜色代码 不支持的色彩格式:%s 选取 @@ -608,7 +607,7 @@ 深色 跟随系统 主题 - 为 Code on the Go 选择主题(需要重启) + 为 %1$s 选择主题(需要重启) 项目配置 必须先构建并安装应用才能启动 启用诊断 @@ -657,7 +656,7 @@ 隐私 隐私和分析 - Code on the Go 会收集匿名的使用情况和崩溃信息,以帮助我们修复缺陷并改进应用。我们不会收集或分享任何个人信息。\n\n选择“共享匿名数据”将发送这些信息;选择“保持离线”则不会发送任何内容。 + %1$s 会收集匿名的使用情况和崩溃信息,以帮助我们修复缺陷并改进应用。我们不会收集或分享任何个人信息。\n\n选择“共享匿名数据”将发送这些信息;选择“保持离线”则不会发送任何内容。 共享匿名数据 保持离线 @@ -670,10 +669,10 @@ Android 版本 同意 开发者选项 - Code on the Go 的实验/调试选项 + %1$s 的实验/调试选项 调试 转储日志 - 将 Code on the Go 日志转储到 $HOME/.cg/logs + 将 %1$s 日志转储到 $HOME/.cg/logs 运行应用的调试版本以在此查看其日志 LogSender 已禁用 你可以在偏好设置中启用它 IDE 的日志在此显示 @@ -694,7 +693,7 @@ 构建应用或运行任务以在此查看构建输出 执行代码操作失败 启用 LogSender - 禁用后,来自应用的日志将不会在 Code on the Go 中显示 + 禁用后,来自应用的日志将不会在 %1$s 中显示 构建变体 Agent 应用 @@ -714,14 +713,14 @@ 无法运行应用 项目中未找到应用模块 启动应用 实验性 - 你在 %2$s 设备上使用了 Code On The Go 的 %1$s 变体 此配置可能有效,但会导致性能下降并可能存在安全漏洞 请尽可能避免使用此配置 + 你在 %2$s 设备上使用了 %3$s 的 %1$s 变体 此配置可能有效,但会导致性能下降并可能存在安全漏洞 请尽可能避免使用此配置 固定行号 锁定行号在视图中,水平滚动时保持可见 蓝色波浪 阳光辉光 Material You 语言 - 选择 Code on the Go 的语言 + 选择 %1$s 的语言 系统默认 项目目录不可访问 所选文件不是目录 @@ -737,23 +736,23 @@ 没有电脑?没有网络?没问题 允许 存储 - 允许 Code on the Go 在此设备上打开和保存文件 + 允许 %1$s 在此设备上打开和保存文件 安装包 - 允许 Code on the Go 安装你在此设备上构建的应用 + 允许 %1$s 安装你在此设备上构建的应用 浮动调试器 - 允许 Code on the Go 在应用运行时显示浮动调试控件以检查代码 + 允许 %1$s 在应用运行时显示浮动调试控件以检查代码 此设备不支持浮动调试器 - 如果无法启用此权限,请显示 Code on the Go 的应用信息,点击三点菜单,然后启用受限设置 + 如果无法启用此权限,请显示 %1$s 的应用信息,点击三点菜单,然后启用受限设置 启用受限设置 - Android 已关闭“在其他应用上层显示”开关,因为 Code on the Go 是从应用商店外部安装的 要开启它: + Android 已关闭“在其他应用上层显示”开关,因为 %1$s 是从应用商店外部安装的 要开启它: 打开应用信息 通知 - 允许 Code on the Go 显示通知 + 允许 %1$s 显示通知 无障碍 - 允许 Code on the Go 访问无障碍服务以进行调试 + 允许 %1$s 访问无障碍服务以进行调试 完成安装 权限 - Code on the Go 需要以下权限: + %1$s 需要以下权限: 请授予权限以继续 你似乎处于离线状态 请检查网络连接 请注意!你正在使用蜂窝数据 @@ -778,7 +777,7 @@ JDK 版本 当前选择:%1$s(更改后需重启) 设置正在进行中 - Code on the Go 设置完成 + %1$s 设置完成 请完成 IDE 设置以继续 调试器 正在启动调试器… @@ -815,11 +814,11 @@ 变量 \'%1$s\' 的值无法更新 网络访问错误 无法监听 JDWP 连接 操作失败,错误代码 %1$d - Code On the Go 不允许在本地网络上打开或绑定网络套接字 - Code On the Go 的网络访问被系统屏蔽 该应用不允许使用网络,或服务不可用 - 无法启动 Code On the Go 调试器 + %1$s 不允许在本地网络上打开或绑定网络套接字 + %1$s 的网络访问被系统屏蔽 该应用不允许使用网络,或服务不可用 + 无法启动 %1$s 调试器 调试器尚未准备好进行调试会话 - 请确保 Code On the Go 有权限访问本地网络 可以在设备的设置中进入 Code On the Go 的“应用信息”界面,检查“数据使用”下是否允许网络访问(具体名称可能因设备而异) \n\n如果允许网络访问但问题仍然存在,请附上日志提交错误报告 + 请确保 %1$s 有权限访问本地网络 可以在设备的设置中进入 %1$s 的“应用信息”界面,检查“数据使用”下是否允许网络访问(具体名称可能因设备而异) \n\n如果允许网络访问但问题仍然存在,请附上日志提交错误报告 没有 Activity 可以处理操作 %1$s @@ -855,8 +854,8 @@ 需要互联网访问 联系 App Dev for All 要报告问题、提出建议或提问,请发送邮件至 feedback@appdevforall.org \n需要互联网访问 - Code on the Go - Code on the Go 反馈 + @string/app_name + %1$s 反馈 日志太大,无法直接发送 没有电脑?没有网络?\n没问题 离线 @@ -1083,7 +1082,7 @@ 配对成功 - 按返回按钮返回 Code on the Go + 按返回按钮返回 %1$s 配对失败 @@ -1111,7 +1110,7 @@ 授予通知权限 - Code on the Go 的通知将帮助你完成配对 \n请允许 Code on the Go 通过 \'%1$s\' 通知频道显示通知 + %2$s 的通知将帮助你完成配对 \n请允许 %2$s 通过 \'%1$s\' 通知频道显示通知 @@ -1140,7 +1139,7 @@ - Code on the Go 不允许启动前台服务(OP_START_FOREGROUND 被拒绝) + %1$s 不允许启动前台服务(OP_START_FOREGROUND 被拒绝) @@ -1158,18 +1157,18 @@ 应用信息界面,点击右上角的三点菜单(⋮) ]]> 允许受限设置 ]]> - 在其他应用上层显示并为 Code on the Go 开启此选项 ]]> + 在其他应用上层显示并为 %1$s 开启此选项 ]]> 开始配对 将显示开发者选项 ]]> 无线调试 ]]> 无线调试以显示更多选项 ]]> 使用配对码配对设备 ]]> - + - 查看更多信息,包括故障排除提示 ]]> + 查看更多信息,包括故障排除提示 ]]> %3$s]]> @@ -1217,11 +1216,11 @@ 将位图保存到文件失败 PixelCopy 失败 捕获或保存截图失败 - 返回 Code on the Go + 返回 %1$s 打开外部链接? - 你即将离开 Code on the Go 打开一个外部链接:\n\n%s\n\n是否要继续? + 你即将离开 %2$s 打开一个外部链接:\n\n%1$s\n\n是否要继续? 取消 继续 不再询问 diff --git a/resources/src/main/res/values/strings.xml b/resources/src/main/res/values/strings.xml index 905c370afe..efee7a1345 100644 --- a/resources/src/main/res/values/strings.xml +++ b/resources/src/main/res/values/strings.xml @@ -10,11 +10,11 @@ Website YouTube Bilibili - Code on the Go v\u2022 %s - Code on the Go %1$s for %2$s + %2$s v\u2022 %1$s + %3$s %1$s for %2$s No computer? No Internet? No problem. Code apps anywhere. Failed to extract package name. - If you\'re facing issues while using Code on the Go or with building Android apps, you can join our Discussions forum and ask for help there.\n\nYou can also send suggestions on our email. + If you\'re facing issues while using %1$s or with building Android apps, you can join our Discussions forum and ask for help there.\n\nYou can also send suggestions on our email. Download Code on the Go from the official website to get the latest features and updates. https://appdevforall.org/codeonthego Invalid URL provided. @@ -118,7 +118,7 @@ This device is not supported - You are using %1$s variant of Code On The Go on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of Code On The Go. + You are using %1$s variant of %3$s on a %2$s-only device. This configuration is not supported. Please install the %2$s variant of %3$s. Clear output Build Output Quick run @@ -137,7 +137,7 @@ Setting up your project - Code on the Go is initializing your project. Please be patient!\n\nWhen setup is finished, \"Project initialized\" will be displayed at the bottom of the screen. + %1$s is initializing your project. Please be patient!\n\nWhen setup is finished, \"Project initialized\" will be displayed at the bottom of the screen. Create a new project Minimum SDK New project @@ -149,7 +149,7 @@ Close this project Last opened project doesn\'t exist. This link could not be opened. - Finish setting up Code on the Go, then open this link again. + Finish setting up %1$s, then open this link again. No project named \"%s\" was found. File \"%s\" was not found in the project. File \"%1$s\" was not found in project \"%2$s\". @@ -365,7 +365,7 @@ Editor font size - About Code on the Go + About %1$s Clear Gradle caches Clear Gradle caches directory. This will delete all dependencies downloaded by Gradle. Required files will be downloaded again in next build. Additional Gradle flags @@ -381,9 +381,9 @@ Editor Build & Run Open last project - When enabled, restarting Code on the Go will automatically open the last project that was open. + When enabled, restarting %1$s will automatically open the last project that was open. Confirm project opening - When enabled, Code on the Go asks for confirmation before opening the last project. + When enabled, %1$s asks for confirmation before opening the last project. Error opening project. General Tab size @@ -417,7 +417,7 @@ Could not create a root view. The XML is empty or missing a valid top-level element. - Code on the Go crashed + %1$s crashed An internal error has occurred.\n\nDetails to help us fix the problem have been saved and will be sent securely the next time your device is online.\n\nWhen you press OK, the app will close and any unsaved changes may @@ -499,8 +499,8 @@ When enabled, the editor considers blank space to be the boundary between words. To view the file tree and project options, swipe from left to right or tap the menu icon at the upper left. To view logs, diagnostics, and more, swipe up or tap the bottom of the page. - To view help for the Code on the Go app, long-press anything to view a tooltip. In the editor, select and long-press text to show the editing toolbar and help button. - To view help in Code on the Go, long-press anything to view a tooltip. In the editor, select and long-press text to show the editing toolbar and help button. + To view help for the %1$s app, long-press anything to view a tooltip. In the editor, select and long-press text to show the editing toolbar and help button. + To view help in %1$s, long-press anything to view a tooltip. In the editor, select and long-press text to show the editing toolbar and help button. Use soft tab Choose whether the tab key inserts spaces instead of the tab character. Donate @@ -514,7 +514,7 @@ Subscribe for latest updates. Discuss features, bugs, and improvements here. What\'s new in this version? - More about Code on the Go + More about %1$s General IDE configuration Configure the editor XML @@ -556,7 +556,7 @@ Your app is installed. Do you want to launch the app? App installed - Code on the Go Gradle build service + %1$s Gradle build service Hex color code Unsupported color format: %s Pick @@ -771,7 +771,7 @@ Dark Follow system Theme - Select a theme for Code on the Go (requires restart). + Select a theme for %1$s (requires restart). Project configuration You must build and install the app before you can launch it. Diagnostics enabled @@ -821,7 +821,7 @@ Privacy Privacy & analytics - Code on the Go collects anonymous usage and crash information to help us fix bugs and improve the app. No personal information is collected or shared.\n\nShare anonymous data sends this information. Keep offline sends nothing at all. + %1$s collects anonymous usage and crash information to help us fix bugs and improve the app. No personal information is collected or shared.\n\nShare anonymous data sends this information. Keep offline sends nothing at all. Share anonymous data Keep offline @@ -834,10 +834,10 @@ Android version Opt-in Developer Options - Experimental/debugging options for Code on the Go + Experimental/debugging options for %1$s Debugging Dump logs - Dump Code on the Go logs to $HOME/.cg/logs + Dump %1$s logs to $HOME/.cg/logs Run the debug variant of your application to view its logs here. LogSender is disabled. You can enable it in preferences. Logs from the IDE are shown here. @@ -865,7 +865,7 @@ "Build the application or run a task to see its build output here. " Failed to perform code action Enable LogSender - When disabled, logs from applications won\'t be shown in Code on the Go + When disabled, logs from applications won\'t be shown in %1$s Build variants Agent Apply @@ -899,14 +899,14 @@ A build is running. Export when it finishes. Experimental Experiments on - You are using %1$s variant of Code On The Go on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. + You are using %1$s variant of %3$s on a %2$s device. This configuration may work, but it\'ll result in reduced performance and possible security vulnerabilities. Please avoid using this configuration whenever possible. Pin line numbers Locks line numbers in view so they stay visible when scrolling horizontally. Blue Wave Sunny Glow Material You Language - Choose the language for Code on the Go. + Choose the language for %1$s. System Default Project directory is not accessible Selected file is not a directory @@ -923,23 +923,23 @@ No computer? No Internet? No problem. Allow Storage - Allow Code on the Go to open and save files on this device. + Allow %1$s to open and save files on this device. Install packages - Allow Code on the Go to install the apps that you build on this device. + Allow %1$s to install the apps that you build on this device. Floating debugger - Allow Code on the Go to display floating debugger controls to inspect your code while it runs. + Allow %1$s to display floating debugger controls to inspect your code while it runs. Floating debugger is not available on this device. - If you can\'t enable this permission, display App info for Code on the Go, tap the three-dot menu, and enable restricted settings. + If you can\'t enable this permission, display App info for %1$s, tap the three-dot menu, and enable restricted settings. Enable restricted settings - Android turned off the “Display over other apps” switch because Code on the Go was installed from outside an app store. To turn it on: + Android turned off the “Display over other apps” switch because %1$s was installed from outside an app store. To turn it on: Open App info Notifications - Allow Code on the Go to display notifications. + Allow %1$s to display notifications. Accessibility - Allow Code on the Go to access accessibility services for debugging. + Allow %1$s to access accessibility services for debugging. Finish installation Permissions - Code on the Go requires the following permissions: + %1$s requires the following permissions: Please grant the permissions to continue. It seems you\'re offline. Check your internet connection. Heads up! You\'re using cellular data. @@ -964,7 +964,7 @@ JDK version Currently selected: %1$s (requires restart if changed) Setup is in progress - Code on the Go setup complete. + %1$s setup complete. Please complete the IDE setup to continue. Debugger Starting debugger… @@ -1001,12 +1001,12 @@ The value of variable \'%1$s\' cannot be updated. Network access error Unable to listen for JDWP connections. Operation failed with error %1$d. - Code On the Go is not allowed to open or bind a network socket on the local network. - Network access for Code On the Go is blocked by the system. The app is not allowed to use the network or the service is unavailable. - Unable to start Code On the Go debugger. + %1$s is not allowed to open or bind a network socket on the local network. + Network access for %1$s is blocked by the system. The app is not allowed to use the network or the service is unavailable. + Unable to start %1$s debugger. The debugger is not ready for a debug session. - Please ensure Code On the Go has permissions to access the local network. This can be checked by - going to the "App info" screen of Code On the Go in your device\'s settings, and checking if + Please ensure %1$s has permissions to access the local network. This can be checked by + going to the "App info" screen of %1$s in your device\'s settings, and checking if network access is allowed under \"Data usage\" (exact name might differ between devices). If network access is allowed and the issue still persists, please file a bug report with the @@ -1048,8 +1048,8 @@ Contact App Dev for All To report issues, make suggestions, and ask questions, email us at feedback@appdevforall.org. Internet access is required. - Code on the Go - Feedback for Code on the Go + @string/app_name + Feedback for %1$s The log is too large to send directly. No computer? No Internet?\nNo problem. Offline @@ -1199,9 +1199,9 @@ Replace the Quick Build proxy app? %1$s is currently the Quick Build proxy app, which reloads your edits without reinstalling. This Run replaces it with a regular APK. Replace the app installed for this project? - Code on the Go cannot tell which app is installed for this project - the project may still be syncing. Continuing replaces whatever is installed under this project\'s app ID. + %1$s cannot tell which app is installed for this project - the project may still be syncing. Continuing replaces whatever is installed under this project\'s app ID. Replace - Live reload crashed. App is on the last working version. For more info, see Build Output in Code on the Go. + Live reload crashed. App is on the last working version. For more info, see Build Output in %1$s. This resource error is now blocking every save, even code-only ones - Quick Build rebuilds all of your resources on each reload. Fix it and save. If the error names something you cannot change, long-press Quick Build and choose Restart session. Saved. Quick Build does not deploy test sources - nothing under src/test, src/androidTest or testFixtures is part of the app it builds. Run your tests from a build task instead. Reloaded. A running service, content provider or Application object can still be calling the previous version of the code you changed, until it restarts - close and reopen your app to be sure. @@ -1317,7 +1317,7 @@ Plugin changes will take effect after restarting the app. Do you want to restart now? Restart now Failed to install plugin: %1$s - Failed to install plugin: the installed version of %1$s could not be unloaded. Restart Code on the Go and try again. + Failed to install plugin: the installed version of %1$s could not be unloaded. Restart %2$s and try again. \'%1$s\' was installed from a different build variant. Uninstall it before installing this version. Plugin error Plugin file not found @@ -1413,7 +1413,7 @@ Pairing successful - Tap the Back button to return to Code on the Go. + Tap the Back button to return to %1$s. Pairing failed @@ -1441,8 +1441,8 @@ Grant notification permission - A notification from Code on the Go will help you complete the pairing. - Please allow Code on the Go to show notifications with the \'%1$s\' notification channel. + A notification from %2$s will help you complete the pairing. + Please allow %2$s to show notifications with the \'%1$s\' notification channel. @@ -1471,7 +1471,7 @@ - Code on the Go is not allowed to start foreground services (OP_START_FOREGROUND denial) + %1$s is not allowed to start foreground services (OP_START_FOREGROUND denial) @@ -1491,18 +1491,18 @@ App info screen, tap the three-dot menu (⋮) in the top corner.]]> Allow restricted settings.]]> - Display over other apps and turn it on for Code on the Go.]]> + Display over other apps and turn it on for %1$s.]]> Start pairing. Developer options are displayed.]]> Wireless debugging.]]> Wireless debugging to display more options.]]> Pair device with pairing code.]]> - + - See more information including troubleshooting tips.]]> + See more information including troubleshooting tips.]]> %3$s]]> @@ -1586,11 +1586,11 @@ Failed to save bitmap to file PixelCopy failed Failed to capture or save screenshot - Back to Code on the Go + Back to %1$s Open external link? - You are about to leave Code on the Go to open an external link:\n\n%s\n\nDo you want to continue? + You are about to leave %2$s to open an external link:\n\n%1$s\n\nDo you want to continue? Cancel Proceed Don\'t ask again @@ -1890,7 +1890,7 @@ Failed to initialize Git repository Got it App update notice - Code on the Go’s package name will soon change. With this change, Android will treat the new version as a separate app, so this version won’t be updated. After the change, all your projects will still be in the CodeOnTheGoProjects folder. + %1$s’s package name will soon change. With this change, Android will treat the new version as a separate app, so this version won’t be updated. After the change, all your projects will still be in the CodeOnTheGoProjects folder. https://appdevforall.org/cogos-package-name-will-change-in-december/ diff --git a/subprojects/shizuku-manager/src/main/java/moe/shizuku/manager/adb/AdbPairingService.kt b/subprojects/shizuku-manager/src/main/java/moe/shizuku/manager/adb/AdbPairingService.kt index 09fc2c0eb2..1c1fcc4a29 100644 --- a/subprojects/shizuku-manager/src/main/java/moe/shizuku/manager/adb/AdbPairingService.kt +++ b/subprojects/shizuku-manager/src/main/java/moe/shizuku/manager/adb/AdbPairingService.kt @@ -105,7 +105,10 @@ class AdbPairingService : Service() { ): Int { val notification = when (intent?.action) { - START_ACTION -> onStart() + START_ACTION -> { + onStart() + } + REPLY_ACTION -> { val code = RemoteInput @@ -125,7 +128,9 @@ class AdbPairingService : Service() { null } - else -> null + else -> { + null + } } if (notification == null) { @@ -217,7 +222,7 @@ class AdbPairingService : Service() { logger.info("Pair succeed") title = getString(R.string.notification_adb_pairing_succeed_title) - text = getString(R.string.notification_adb_pairing_succeed_text) + text = getString(R.string.notification_adb_pairing_succeed_text, getString(R.string.app_name)) stopSearch() sendBroadcast(Intent(ACTION_PAIR_SUCCEEDED), PERMISSION_RECEIVE_WADB_PAIR_RESULT)