Skip to content

Conversation

@znarf
Copy link
Owner

@znarf znarf commented Oct 12, 2025

No description provided.

@znarf znarf requested a review from Copilot October 12, 2025 07:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements internationalization (i18n) improvements and code style standardization across the blogmarks application. The changes primarily focus on replacing hardcoded strings with translatable functions and updating JavaScript code to use consistent quote styles.

  • Replaces hardcoded strings with translatable _() function calls for better internationalization support
  • Standardizes JavaScript code to use single quotes consistently throughout
  • Updates French translation files with new localized strings and metadata

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
replaceables/view/side_title.php Removes HTML formatting and adds internationalization to default title
public/js/bm.js Standardizes quote usage to single quotes and adds new strongH3 function
locale/fr_FR.utf8/LC_MESSAGES/blogmarks.po Updates translation metadata and adds new French translations
config/schema.sql Removes tentatives column from bm_screenshots table
application/views/marks/form-modal.view.php Adds commented conditional logic for private tags
application/modules/public.module.php Replaces hardcoded strings with translatable functions
application/modules/my.module.php Replaces hardcoded strings with translatable functions
application/layouts/default.layout.php Updates footer contact information
application/helpers/taglist.helper.php Optimizes tag count calculation using array functions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

$container->tags( model('tags')->from_user->__use($user) );
$container->marks( model('marks')->from_user->__use($user, $params) );
$sidebar->register(['Tags', 'from ' . strong($user)], function() { partial('tags'); });
$sidebar->register([('Tags from') . ' ' . strong($user)], function() { partial('tags'); });
Copy link

Copilot AI Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing underscore function call. Should be _('Tags from') instead of ('Tags from').

Suggested change
$sidebar->register([('Tags from') . ' ' . strong($user)], function() { partial('tags'); });
$sidebar->register([_('Tags from') . ' ' . strong($user)], function() { partial('tags'); });

Copilot uses AI. Check for mistakes.
elseif ($matches = url_match('/my/marks/search/*')) {
$query = set_param('query', urldecode($matches[1]));
title(_('My Marks'), 'with search ' . strong($query));
title(_('My Marks with search'), ' ' . strong($query));
Copy link

Copilot AI Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translation string includes formatting that should be separate. Should be title(_('My Marks with search') . ' ' . strong($query)); to match the pattern used elsewhere.

Suggested change
title(_('My Marks with search'), ' ' . strong($query));
title(_('My Marks with search') . ' ' . strong($query));

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants